diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-09-19 12:00:26 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-09-19 12:02:30 -0500 |
commit | 0498f0edeb6d8ee010760533f1de210a1f39a0f3 (patch) | |
tree | 3b59033e1dea83a5ec61d2a650684b428d3a4c36 /auth/auth-service/src/test/java | |
parent | 6f6c62001939a00135e5be10009535b74cdee615 (diff) |
textual cleanup for M4
Issue-ID: AAF-509
Change-Id: Ib109ba404f158bbffb6dc60c96850fd7e56871fd
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-service/src/test/java')
-rw-r--r-- | auth/auth-service/src/test/java/org/onap/aaf/authz/service/mapper/JU_Mapper_2_0.java | 84 |
1 files changed, 42 insertions, 42 deletions
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; + } } } |