summaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
authorThugutla sailakshmi <tsaila10@in.ibm.com>2019-11-07 12:54:14 +0530
committerThugutla sailakshmi <tsaila10@in.ibm.com>2019-11-07 12:54:24 +0530
commit6470f23997c98997c76ba9161bac68ea685550d8 (patch)
treeb2af7d88c535b16894ea00bc6c1143fc90776e72 /auth
parent333a035c095351e496328ec72c82beb65507e71b (diff)
Grant.java-removing useless assignments
Issue-ID: AAF-876 Change-Id: I17093f3607cfbcebbe7123a9ecde22a8559d4f0b Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
Diffstat (limited to 'auth')
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Grant.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Grant.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Grant.java
index eb206970..3770a58c 100644
--- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Grant.java
+++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/perm/Grant.java
@@ -74,7 +74,7 @@ public class Grant extends Cmd {
Future<RolePermRequest> frpr = null;
- String[] roles = args[idx++].split(",");
+ String[] roles = args[idx].split(",");
String strA;
String strB;
for (String role : roles) {
@@ -110,7 +110,6 @@ public class Grant extends Cmd {
pw().println(" Accepted, but requires Approvals before actualizing");
} else {
error(frpr);
- idx=Integer.MAX_VALUE;
}
}
}