summaryrefslogtreecommitdiffstats
path: root/auth/auth-cmd/src/main
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2018-09-11 15:02:56 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-11 15:02:56 +0000
commit812e78799e0d3f6659ae478859035b78bc1ff027 (patch)
treeb525a1fe8738d5531e4fcca1d11d3591a2d10801 /auth/auth-cmd/src/main
parent97b752ccd6c7f0244f32503c5e2db0a27400ecf2 (diff)
parente3acfdc96b99ac222b3d46a3838b356e6a471072 (diff)
Merge "Deprecated.java and Help.java: Sonar issue"
Diffstat (limited to 'auth/auth-cmd/src/main')
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/DeprecatedCMD.java4
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/Help.java9
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\"");