From 7a5fdca11e589dcba2ce3240f203f0f70d7775ba Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Thu, 7 Nov 2019 13:28:02 +0530 Subject: ListForCreds,Roles,Permissions-removing useless assignments Issue-ID: AAF-876 Change-Id: I0f5c3d7f2eaa86c03bbeb2b6a4b6ee20ae8a1ada Signed-off-by: Thugutla sailakshmi --- .../src/main/java/org/onap/aaf/auth/cmd/user/ListForCreds.java | 2 +- .../src/main/java/org/onap/aaf/auth/cmd/user/ListForPermission.java | 2 +- .../src/main/java/org/onap/aaf/auth/cmd/user/ListForRoles.java | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'auth/auth-cmd/src/main') diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForCreds.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForCreds.java index 07a19d36..8502f398 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForCreds.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForCreds.java @@ -60,7 +60,7 @@ public class ListForCreds extends Cmd { int idx = idxParam; final int option = whichOption(options, args[idx++]); final String which = options[option]; - final String value = args[idx++]; + final String value = args[idx]; return same(new Retryable() { @Override public Integer code(Rcli client) throws CadiException, APIException { diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForPermission.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForPermission.java index 0ab24900..6b9c83f7 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForPermission.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForPermission.java @@ -64,7 +64,7 @@ public class ListForPermission extends Cmd { String type = args[idx++]; String instance = args[idx++]; if ("\\*".equals(instance))instance="*"; - String action = args[idx++]; + String action = args[idx]; if ("\\*".equals(action))action="*"; try { Future fp = client.read( diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForRoles.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForRoles.java index 6fdf1628..13f0a00d 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForRoles.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/user/ListForRoles.java @@ -47,8 +47,7 @@ public class ListForRoles extends Cmd { @Override public int _exec(int _idx, final String ... args) throws CadiException, APIException, LocatorException { - int idx = _idx; - final String role = args[idx++]; + final String role = args[_idx]; return same(new Retryable() { @Override public Integer code(Rcli client) throws CadiException, APIException { -- cgit 1.2.3-korg