X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fauth-batch%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faaf%2Fauth%2Fhelpers%2FUserRole.java;h=a289fe00817096499561812c52847b733361698e;hb=f85f0889b3b0e5e9694afab4dd01a4a97a155188;hp=9f366c817c488784f03ed37bfb07f8b89f524fba;hpb=0978e42055b2039648dd2c9c8b70d77d86670e83;p=aaf%2Fauthz.git diff --git a/auth/auth-batch/src/main/java/org/onap/aaf/auth/helpers/UserRole.java b/auth/auth-batch/src/main/java/org/onap/aaf/auth/helpers/UserRole.java index 9f366c81..a289fe00 100644 --- a/auth/auth-batch/src/main/java/org/onap/aaf/auth/helpers/UserRole.java +++ b/auth/auth-batch/src/main/java/org/onap/aaf/auth/helpers/UserRole.java @@ -44,10 +44,10 @@ import com.datastax.driver.core.SimpleStatement; import com.datastax.driver.core.Statement; public class UserRole implements Cloneable, CacheChange.Data { - public static final List data = new ArrayList(); - public static final TreeMap> byUser = new TreeMap>(); - public static final TreeMap> byRole = new TreeMap>(); - private final static CacheChange cache = new CacheChange(); + public static final List data = new ArrayList<>(); + public static final TreeMap> byUser = new TreeMap<>(); + public static final TreeMap> byRole = new TreeMap<>(); + private final static CacheChange cache = new CacheChange<>(); private static PrintStream urDelete=System.out,urRecover=System.err; private static int totalLoaded; private static int deleted; @@ -109,14 +109,14 @@ public class UserRole implements Cloneable, CacheChange.Data { List lur = byUser.get(ur.urdd.user); if(lur==null) { - lur = new ArrayList(); + lur = new ArrayList<>(); byUser.put(ur.urdd.user, lur); } lur.add(ur); lur = byRole.get(ur.urdd.role); if(lur==null) { - lur = new ArrayList(); + lur = new ArrayList<>(); byRole.put(ur.urdd.role, lur); } lur.add(ur);