Collection syntax change because of Sonar
[aaf/authz.git] / auth / auth-batch / src / main / java / org / onap / aaf / auth / helpers / Approval.java
index 0bd9397..58aa206 100644 (file)
@@ -45,10 +45,10 @@ public class Approval implements CacheChange.Data  {
        public static final String RE_VALIDATE_ADMIN = "Re-Validate as Administrator for AAF Namespace '";
        public static final String RE_VALIDATE_OWNER = "Re-Validate Ownership for AAF Namespace '";
 
-       public static TreeMap<String,List<Approval>> byApprover = new TreeMap<String,List<Approval>>();
-       public static TreeMap<String,List<Approval>> byUser = new TreeMap<String,List<Approval>>();
-       public static TreeMap<UUID,List<Approval>> byTicket = new TreeMap<UUID,List<Approval>>();
-       private final static CacheChange<Approval> cache = new CacheChange<Approval>(); 
+       public static TreeMap<String,List<Approval>> byApprover = new TreeMap<>();
+       public static TreeMap<String,List<Approval>> byUser = new TreeMap<>();
+       public static TreeMap<UUID,List<Approval>> byTicket = new TreeMap<>();
+       private final static CacheChange<Approval> cache = new CacheChange<>(); 
        
        public final ApprovalDAO.Data add;
        private String role;
@@ -114,7 +114,7 @@ public class Approval implements CacheChange.Data  {
                                                if(person!=null) {
                                                ln = byApprover.get(person);
                                                        if(ln==null) {
-                                                               ln = new ArrayList<Approval>();
+                                                               ln = new ArrayList<>();
                                                                byApprover.put(app.getApprover(), ln);
                                                        }
                                                        ln.add(app);
@@ -125,7 +125,7 @@ public class Approval implements CacheChange.Data  {
                                                if(person!=null) {
                                                        ln = byUser.get(person);
                                                        if(ln==null) {
-                                                               ln = new ArrayList<Approval>();
+                                                               ln = new ArrayList<>();
                                                                byUser.put(app.getUser(), ln);
                                                        }
                                                        ln.add(app);
@@ -134,7 +134,7 @@ public class Approval implements CacheChange.Data  {
                                                if(ticket!=null) {
                                                        ln = byTicket.get(ticket);
                                                        if(ln==null) {
-                                                               ln = new ArrayList<Approval>();
+                                                               ln = new ArrayList<>();
                                                                byTicket.put(app.getTicket(), ln);
                                                        }
                                                ln.add(app);