Merge "ListActivity,User.java-remove useless assignments"
authorJonathan Gathman <jonathan.gathman@att.com>
Mon, 2 Dec 2019 23:45:35 +0000 (23:45 +0000)
committerGerrit Code Review <gerrit@onap.org>
Mon, 2 Dec 2019 23:45:35 +0000 (23:45 +0000)
auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/role/ListActivity.java
auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/role/User.java

index b6a8a0d..9433807 100644 (file)
@@ -47,9 +47,8 @@ public class ListActivity extends Cmd {
     }
 
     @Override
-    public int _exec(int _idx, final String ... args) throws CadiException, APIException, LocatorException {
-            int idx = _idx;
-        final String role = args[idx++];
+    public int _exec(final int idx, final String ... args) throws CadiException, APIException, LocatorException {
+        final String role = args[idx];
         return same(new Retryable<Integer>() {
             @Override
             public Integer code(Rcli<?> client) throws CadiException, APIException {
index 4641ade..a0a8579 100644 (file)
@@ -63,7 +63,7 @@ public class User extends Cmd {
 
                 Future<?> fp = null;
 
-                String[] ids = args[idx++].split(",");
+                String[] ids = args[idx].split(",");
                 String verb=null,participle=null;
                 // You can request to be added or removed from role.
                 setQueryParamsOn(client);