X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fonap%2Fclamp%2Floop%2FLoopService.java;h=5f082281616fb7bee0f6c1ccc06921d7cae76d54;hb=061ecec6a6099ad7fb480b0fe67f6e5154f9db23;hp=3f568a331e147eb6af15a0facd11b60a6f443b8a;hpb=515251fb5ce2d8f2b4ccb5bd5d3ebd46deb4d29a;p=clamp.git diff --git a/src/main/java/org/onap/clamp/loop/LoopService.java b/src/main/java/org/onap/clamp/loop/LoopService.java index 3f568a33..5f082281 100644 --- a/src/main/java/org/onap/clamp/loop/LoopService.java +++ b/src/main/java/org/onap/clamp/loop/LoopService.java @@ -120,9 +120,10 @@ public class LoopService { PolicyModel policyModel = policyModelsService.getPolicyModel(policyType, policyVersion); Set 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;