From 3686ead8c0af9825ce664083985d8ab9ae8f7a7c Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Thu, 7 Nov 2019 13:04:11 +0530 Subject: ListActivity,User.java-remove useless assignments Issue-ID: AAF-876: Change-Id: I41d4b661f36bd1bfaabe897aa280efbc3ad2ef82 Signed-off-by: Thugutla sailakshmi --- .../src/main/java/org/onap/aaf/auth/cmd/role/ListActivity.java | 5 ++--- auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/role/User.java | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'auth/auth-cmd/src') diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/role/ListActivity.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/role/ListActivity.java index b6a8a0da..94338078 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/role/ListActivity.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/role/ListActivity.java @@ -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() { @Override public Integer code(Rcli client) throws CadiException, APIException { diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/role/User.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/role/User.java index 4641ade7..a0a8579b 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/role/User.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/role/User.java @@ -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); -- cgit 1.2.3-korg