Add info in the SVG
[clamp.git] / src / main / java / org / onap / clamp / loop / LoopService.java
index d14667e..5f08228 100644 (file)
@@ -120,9 +120,10 @@ public class LoopService {
         PolicyModel policyModel = policyModelsService.getPolicyModel(policyType, policyVersion);
         Set<OperationalPolicy> opPolicySet = loop.getOperationalPolicies();
         for (OperationalPolicy opPolicy : opPolicySet) {
-               if (opPolicy.getPolicyModel().equals(policyModel)) {
-                       throw new IllegalArgumentException("This type of Operational Policy is already added to the loop. Please choose another one.");
-               }
+            if (opPolicy.getPolicyModel().equals(policyModel)) {
+                throw new IllegalArgumentException(
+                        "This type of Operational Policy is already added to the loop. Please choose another one.");
+            }
         }
         if (policyModel == null) {
             return null;
@@ -137,7 +138,7 @@ public class LoopService {
      *
      * @param loopName      The loop name
      * @param policyType    The policy model type
-     * @param policyVersion The policy model  version
+     * @param policyVersion The policy model version
      * @return The loop modified
      */
     Loop removeOperationalPolicy(String loopName, String policyType, String policyVersion) {