diff options
author | Jonathan Gathman <jonathan.gathman@att.com> | 2018-09-12 21:37:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-12 21:37:12 +0000 |
commit | 0f7c1d221f16ab3cace0e40a1b14fa75fb9a958c (patch) | |
tree | 75473535157f98007e8e10ee6794b6785f4c65d1 /auth/auth-cmd | |
parent | 4ce9ec25105cd3f92b0f39b30f50b48849aac156 (diff) | |
parent | 9f312d4900116232363674f5e98b0c9e76605f7f (diff) |
Merge "SessClear.java: Fixed sonar issue"
Diffstat (limited to 'auth/auth-cmd')
-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'"); |