From 9f312d4900116232363674f5e98b0c9e76605f7f Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Wed, 12 Sep 2018 15:53:24 +0530 Subject: 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 --- .../src/main/java/org/onap/aaf/auth/cmd/mgmt/SessClear.java | 10 ++++++---- 1 file 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() { @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'"); -- cgit 1.2.3-korg