diff options
author | Jonathan Gathman <jonathan.gathman@att.com> | 2019-12-03 12:40:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-03 12:40:38 +0000 |
commit | aacda44d54fd3c45609d85e09e3b20fc824ec494 (patch) | |
tree | 30736d0c09c3cdc6e9f38b80fa9710397a2c0a45 /auth/auth-cmd/src/main/java | |
parent | 7e27616ebe3e3770163241076f87bbfa63c25b07 (diff) | |
parent | 117b1c1fac1d83ffcd866893ab49b138c5126f72 (diff) |
Merge "ListActivity,Rename.java-removing the useless assignments"
Diffstat (limited to 'auth/auth-cmd/src/main/java')
-rw-r--r-- | auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/ListActivity.java | 3 | ||||
-rw-r--r-- | auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Rename.java | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/ListActivity.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/ListActivity.java index 6400aad3..42725223 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/ListActivity.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/ListActivity.java @@ -51,8 +51,7 @@ public class ListActivity extends Cmd { return same(new Retryable<Integer>() { @Override public Integer code(Rcli<?> client) throws CadiException, APIException { - int idx = index; - String type = args[idx++]; + String type = args[index]; Future<History> fp = client.read( "/authz/hist/perm/"+type, getDF(History.class) diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Rename.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Rename.java index d868a7c8..36b5a966 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Rename.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Rename.java @@ -65,7 +65,7 @@ public class Rename extends Cmd { PermRequest pr = new PermRequest(); pr.setType(args[idx++]); pr.setInstance(args[idx++]); - pr.setAction(args[idx++]); + pr.setAction(args[idx]); // Set Start/End commands setStartEnd(pr); |