Remaining sonar issues in pap 89/105689/1
authorJim Hahn <jrh3@att.com>
Thu, 9 Apr 2020 14:05:08 +0000 (10:05 -0400)
committerJim Hahn <jrh3@att.com>
Thu, 9 Apr 2020 15:27:00 +0000 (11:27 -0400)
Addressed these remaining sonar issues:
- main arg validation
- TODO item regarding subgroup updates with no PDPs
  - after discussion, it was decided to not do this

Issue-ID: POLICY-2305
Change-Id: Ib2b340d029679d6cd2b2a558318b25d38b830833
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeployProvider.java
main/src/main/java/org/onap/policy/pap/main/startstop/Main.java

index ed77a43..4c0accd 100644 (file)
@@ -263,8 +263,6 @@ public class PdpGroupDeployProvider extends ProviderBase {
         }
 
 
-        // TODO add code to ensure that dbsub has at least one PDP instance if policies is not empty
-
         Set<String> pdps = dbsub.getPdpInstances().stream().map(Pdp::getInstanceId).collect(Collectors.toSet());
 
         for (ToscaPolicyIdentifier policyId : deployed) {
index fc3ebbc..1f478d7 100644 (file)
@@ -156,7 +156,11 @@ public class Main {
      *
      * @param args the arguments
      */
-    public static void main(final String[] args) {
+    public static void main(final String[] args) {      // NOSONAR
+        /*
+         * NOTE: arguments are validated by the constructor, thus sonar is disabled.
+         */
+
         new Main(args);
     }
 }