Merge "SonarFix-ListAdminResponsible,ListbyName,ListChild"
authorJonathan Gathman <jonathan.gathman@att.com>
Tue, 2 Oct 2018 10:23:01 +0000 (10:23 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 2 Oct 2018 10:23:01 +0000 (10:23 +0000)
auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListAdminResponsible.java
auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListByName.java
auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListChildren.java

index e62207a..3e3a0ea 100644 (file)
@@ -36,7 +36,7 @@ import aaf.v2_0.Nss;
 
 public class ListAdminResponsible extends Cmd {
     private static final String HEADER="List Namespaces with ";
-    private final static String[] options = {"admin","owner"};
+    private static final String[] options = {"admin","owner"};
     
     public ListAdminResponsible(List parent) {
         super(parent,null, 
index 3189b88..b4cca87 100644 (file)
@@ -52,8 +52,8 @@ public class ListByName extends Cmd {
     }
 
     @Override
-    public int _exec(int _idx, final String ... args) throws CadiException, APIException, LocatorException {
-            int idx = _idx;
+    public int _exec(int idxValue, final String ... args) throws CadiException, APIException, LocatorException {
+            int idx = idxValue;
         final String ns=args[idx++];
         return same(new Retryable<Integer>() {
             @Override
index b3b0bcf..96baa32 100644 (file)
@@ -49,8 +49,8 @@ public class ListChildren extends Cmd {
     }
 
     @Override
-    public int _exec(int _idx, final String ... args) throws CadiException, APIException, LocatorException {
-            int idx = _idx;
+    public int _exec(int idxValue, final String ... args) throws CadiException, APIException, LocatorException {
+            int idx = idxValue;
         final String ns=args[idx++];
         return same(new Retryable<Integer>() {
             @Override