diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-09-12 15:53:24 +0530 |
---|---|---|
committer | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2018-09-12 15:53:36 +0530 |
commit | 9f312d4900116232363674f5e98b0c9e76605f7f (patch) | |
tree | 30821ad071519bea74a6f747cab5613071408196 | |
parent | 812e78799e0d3f6659ae478859035b78bc1ff027 (diff) |
SessClear.java: Fixed sonar issue
Sonar link : https://sonar.onap.org/code?id=org.onap.aaf.authz%3Aparent&selected=org.onap.aaf.authz%3Aaaf-auth-cmd%3Asrc%2Fmain%2Fjava%2Forg%2Fonap%2Faaf%2Fauth%2Fcmd%2Fmgmt%2FSessClear.java
Issue-ID: AAF-487
Change-Id: Ifbe28f1950d2e6b6e2ca8b617d816c7499de78d7
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
-rw-r--r-- | auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/SessClear.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/SessClear.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/SessClear.java index cd10ef60..72e37535 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/SessClear.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/SessClear.java @@ -46,7 +46,7 @@ public class SessClear extends Cmd { @Override public int _exec(int idx, String ... args) throws CadiException, APIException, LocatorException { - int rv=409; + int rv; String machine = args[idx++]; rv = oneOf(new Retryable<Integer>() { @Override @@ -60,7 +60,9 @@ public class SessClear extends Cmd { pw().println("Cleared DBSession on " + client); rv=200; } else { - if (rv==409)rv = fp.code(); + if (rv==409) { + rv = fp.code(); + }; error(fp); } return rv; @@ -70,8 +72,8 @@ public class SessClear extends Cmd { } @Override - public void detailedHelp(int _indent, StringBuilder sb) { - int indent = _indent; + public void detailedHelp(int indentValue, StringBuilder sb) { + int indent = indentValue; detailLine(sb,indent,"Clear the cache for certain tables"); indent+=2; detailLine(sb,indent,"name - name of table or 'all'"); |