diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-09-11 13:39:42 +0530 |
---|---|---|
committer | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2018-09-11 13:39:52 +0530 |
commit | e3acfdc96b99ac222b3d46a3838b356e6a471072 (patch) | |
tree | 147897ed3b55ef66202e67ff8c588fc491e56ab0 /auth | |
parent | c864fd0dd9ac5a3704c883abbb16005aa5b16742 (diff) |
Deprecated.java and Help.java: Sonar issue
Fixed major sonar issues in help.java and deprecated.java files.
Issue-ID: AAF-481
Change-Id: I3855e0cc442a929fcba785c011f4f84ccad3545a
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'auth')
-rw-r--r-- | auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/DeprecatedCMD.java | 4 | ||||
-rw-r--r-- | auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Help.java | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/DeprecatedCMD.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/DeprecatedCMD.java index dad2076f..6082fac8 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/DeprecatedCMD.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/DeprecatedCMD.java @@ -45,9 +45,9 @@ public class DeprecatedCMD<X extends Cmd> extends BaseCmd<X> { } @Override - public int _exec(int _idx, final String ... args) throws CadiException, APIException, LocatorException { + public int _exec(int idx, final String ... args) throws CadiException, APIException, LocatorException { pw().println(text); - return _idx; + return idx; } } diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Help.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Help.java index 66a3355a..12cf0635 100644 --- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Help.java +++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Help.java @@ -38,8 +38,8 @@ public class Help extends Cmd { } @Override - public int _exec( int _idx, final String ... args) throws CadiException, APIException, LocatorException { - int idx = _idx; + public int _exec( int idxValue, final String ... args) throws CadiException, APIException, LocatorException { + int idx = idxValue; boolean first = true; StringBuilder sb = new StringBuilder("AAF Command Line Tool"); StringBuilder details; @@ -75,7 +75,6 @@ public class Help extends Cmd { c.build(sb,details); if (details!=null) { c.detailedHelp(4, sb); - // multiChar(sb,80,'-',2); } } } @@ -86,8 +85,8 @@ public class Help 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,"To print main help, enter \"aafcli\" or \"aafcli --help \""); detailLine(sb,indent,"To print narrow the help content, enter sub-entries after aafcli,"); detailLine(sb,indent+2,"i.e. \"aafcli perm\""); |