From: Thugutla sailakshmi Date: Thu, 7 Nov 2019 07:24:14 +0000 (+0530) Subject: Grant.java-removing useless assignments X-Git-Tag: 2.1.17~36^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aaf%2Fauthz.git;a=commitdiff_plain;h=6470f23997c98997c76ba9161bac68ea685550d8 Grant.java-removing useless assignments Issue-ID: AAF-876 Change-Id: I17093f3607cfbcebbe7123a9ecde22a8559d4f0b Signed-off-by: Thugutla sailakshmi --- 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 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; } } }