summaryrefslogtreecommitdiffstats
path: root/auth/auth-cmd
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-12-04 10:31:01 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2018-12-04 10:33:16 +0530
commitcb5795c42940225d694f234093398b3ee16878f5 (patch)
treea9c9c258757667db1d3ab13faf0260e4a9ecea78 /auth/auth-cmd
parentc2445ee11b66efebdd5efe92fddf9526926c736e (diff)
Sonar Fix: Clear.java
Fixed sonar issues/code-smells across this file Issue-ID: AAF-661 Change-Id: Ie191a8e6dc828b67a8d199f2587db962cc4fbc82 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'auth/auth-cmd')
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Clear.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Clear.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Clear.java
index 5c74dda8..83bf57c0 100644
--- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Clear.java
+++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Clear.java
@@ -45,8 +45,8 @@ public class Clear extends Cmd {
}
@Override
- public int _exec(int _idx, String ... args) throws CadiException, APIException, LocatorException {
- int idx = _idx;
+ public int _exec(int idxParam, String ... args) throws CadiException, APIException, LocatorException {
+ int idx = idxParam;
int rv=409;
for (final String name : args[idx++].split(COMMA)) {
rv = all(new Retryable<Integer>() {
@@ -61,7 +61,9 @@ public class Clear extends Cmd {
pw().println("Cleared Cache for " + name + " on " + client);
rv=200;
} else {
- if (rv==409)rv = fp.code();
+ if (rv==409) {
+ rv = fp.code();
+ }
error(fp);
}
return rv;
@@ -72,8 +74,8 @@ public class Clear extends Cmd {
}
@Override
- public void detailedHelp(int _indent, StringBuilder sb) {
- int indent = _indent;
+ public void detailedHelp(int indentParam, StringBuilder sb) {
+ int indent = indentParam;
detailLine(sb,indent,"Clear the cache for certain tables");
indent+=2;
detailLine(sb,indent,"name - name of table or 'all'");