summaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2018-10-02 10:23:01 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-02 10:23:01 +0000
commit535a03fb6b15ce3f2e923c71840d43c80f6f6aa1 (patch)
treedb7711a7cc95a9b3548a47186a19006947b6607b /auth
parentc77226927523b821936debe660e880b713c88edc (diff)
parentf526c472a95d08104e5f0be04eafa406378401df (diff)
Merge "SonarFix-ListAdminResponsible,ListbyName,ListChild"
Diffstat (limited to 'auth')
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListAdminResponsible.java2
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListByName.java4
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListChildren.java4
3 files changed, 5 insertions, 5 deletions
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListAdminResponsible.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListAdminResponsible.java
index e62207a0..3e3a0ea6 100644
--- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListAdminResponsible.java
+++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListAdminResponsible.java
@@ -36,7 +36,7 @@ import aaf.v2_0.Nss;
public class ListAdminResponsible extends Cmd {
private static final String HEADER="List Namespaces with ";
- private final static String[] options = {"admin","owner"};
+ private static final String[] options = {"admin","owner"};
public ListAdminResponsible(List parent) {
super(parent,null,
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListByName.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListByName.java
index 3189b88b..b4cca87e 100644
--- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListByName.java
+++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListByName.java
@@ -52,8 +52,8 @@ public class ListByName 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;
final String ns=args[idx++];
return same(new Retryable<Integer>() {
@Override
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListChildren.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListChildren.java
index b3b0bcfc..96baa324 100644
--- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListChildren.java
+++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/ns/ListChildren.java
@@ -49,8 +49,8 @@ public class ListChildren 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;
final String ns=args[idx++];
return same(new Retryable<Integer>() {
@Override