summaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
Diffstat (limited to 'auth')
-rw-r--r--auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/hl/Question.java12
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Deny.java6
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Log.java2
-rw-r--r--auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/SessClear.java2
-rw-r--r--auth/auth-service/src/test/java/org/onap/aaf/authz/service/mapper/JU_Mapper_2_0.java84
5 files changed, 53 insertions, 53 deletions
diff --git a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/hl/Question.java b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/hl/Question.java
index 43a88aa5..18b57d8b 100644
--- a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/hl/Question.java
+++ b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/hl/Question.java
@@ -393,12 +393,12 @@ public class Question {
return Result.ok(nsd);
} else {
int dot = str.lastIndexOf('.');
-
- if (dot < 0) {
- return Result.err(Status.ERR_NsNotFound, "No Namespace for [%s]", str);
- } else {
- return deriveFirstNsForType(trans, str.substring(0, dot),type);
- }
+
+ if (dot < 0) {
+ return Result.err(Status.ERR_NsNotFound, "No Namespace for [%s]", str);
+ } else {
+ return deriveFirstNsForType(trans, str.substring(0, dot),type);
+ }
}
} else {
return Result.err(Status.ERR_NsNotFound,"There is no valid Company Namespace for %s",str);
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Deny.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Deny.java
index 47e5b45c..bc7f91f8 100644
--- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Deny.java
+++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Deny.java
@@ -74,10 +74,10 @@ public class Deny extends BaseCmd<Mgmt> {
Future<Void> fp;
String resp;
if(option == 0) {
- fp = client.create(path, Void.class);
+ fp = client.create(path, Void.class);
resp = " added";
} else {
- fp = client.delete(path, Void.class);
+ fp = client.delete(path, Void.class);
resp = " deleted";
}
if (fp.get(AAFcli.timeout())) {
@@ -85,7 +85,7 @@ public class Deny extends BaseCmd<Mgmt> {
rv=fp.code();
} else {
if (rv==409) {
- rv = fp.code();
+ rv = fp.code();
};
error(fp);
}
diff --git a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Log.java b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Log.java
index 237e3c9e..6289032d 100644
--- a/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Log.java
+++ b/auth/auth-cmd/src/main/java/org/onap/aaf/auth/cmd/mgmt/Log.java
@@ -84,7 +84,7 @@ public class Log extends BaseCmd<Mgmt> {
rv=200;
} else {
if (rv==409) {
- rv = fp.code();
+ rv = fp.code();
};
error(fp);
}
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 72e37535..9ca01a39 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
@@ -61,7 +61,7 @@ public class SessClear extends Cmd {
rv=200;
} else {
if (rv==409) {
- rv = fp.code();
+ rv = fp.code();
};
error(fp);
}
diff --git a/auth/auth-service/src/test/java/org/onap/aaf/authz/service/mapper/JU_Mapper_2_0.java b/auth/auth-service/src/test/java/org/onap/aaf/authz/service/mapper/JU_Mapper_2_0.java
index b9f31220..09cc709b 100644
--- a/auth/auth-service/src/test/java/org/onap/aaf/authz/service/mapper/JU_Mapper_2_0.java
+++ b/auth/auth-service/src/test/java/org/onap/aaf/authz/service/mapper/JU_Mapper_2_0.java
@@ -96,7 +96,7 @@ import aaf.v2_0.UserRoles;
@RunWith(MockitoJUnitRunner.class)
public class JU_Mapper_2_0 {
- private static final String USER = "John";
+ private static final String USER = "John";
private Mapper_2_0 mapper;
@Mock
@@ -650,13 +650,13 @@ public class JU_Mapper_2_0 {
*
*/
public static class ImmutableMap {
- public static <T,U> Map<T,U> of(Object ... tag_value) {
- Map<T,U> rv = new HashMap<>();
- for(int i=0;i<tag_value.length-1;i+=2) {
- rv.put((T)tag_value[i],(U)tag_value[i+1]);
- }
- return rv;
- }
+ public static <T,U> Map<T,U> of(Object ... tag_value) {
+ Map<T,U> rv = new HashMap<>();
+ for(int i=0;i<tag_value.length-1;i+=2) {
+ rv.put((T)tag_value[i],(U)tag_value[i+1]);
+ }
+ return rv;
+ }
}
@@ -666,13 +666,13 @@ public class JU_Mapper_2_0 {
*
*/
public static class Iterables {
- public static <T> T getOnlyElement(List<T> lt) {
- if(lt.isEmpty()) {
- return null;
- } else {
- return lt.get(0);
- }
- }
+ public static <T> T getOnlyElement(List<T> lt) {
+ if(lt.isEmpty()) {
+ return null;
+ } else {
+ return lt.get(0);
+ }
+ }
}
/**
@@ -681,25 +681,25 @@ public class JU_Mapper_2_0 {
*
*/
public static class Lists {
- @SuppressWarnings("unchecked")
- public static <T> List<T> newArrayList(Collection<T> ... init ) {
- List<T> rv = new ArrayList<>();
- for(Collection<T> o : init) {
- for(T t : o) {
- rv.add(t);
- }
- }
- return rv;
- }
-
- @SuppressWarnings("unchecked")
- public static <T> List<T> newArrayList(Object ... init ) {
- List<T> rv = new ArrayList<>();
- for(Object o : init) {
- rv.add((T)o);
- }
- return rv;
- }
+ @SuppressWarnings("unchecked")
+ public static <T> List<T> newArrayList(Collection<T> ... init ) {
+ List<T> rv = new ArrayList<>();
+ for(Collection<T> o : init) {
+ for(T t : o) {
+ rv.add(t);
+ }
+ }
+ return rv;
+ }
+
+ @SuppressWarnings("unchecked")
+ public static <T> List<T> newArrayList(Object ... init ) {
+ List<T> rv = new ArrayList<>();
+ for(Object o : init) {
+ rv.add((T)o);
+ }
+ return rv;
+ }
}
@@ -709,13 +709,13 @@ public class JU_Mapper_2_0 {
*
*/
public static class Sets {
- @SuppressWarnings("unchecked")
- public static <T> Set<T> newHashSet(Object ... init ) {
- Set<T> rv = new HashSet<>();
- for(Object o : init) {
- rv.add((T)o);
- }
- return rv;
- }
+ @SuppressWarnings("unchecked")
+ public static <T> Set<T> newHashSet(Object ... init ) {
+ Set<T> rv = new HashSet<>();
+ for(Object o : init) {
+ rv.add((T)o);
+ }
+ return rv;
+ }
}
}