Collection syntax change because of Sonar
[aaf/authz.git] / auth / auth-cmd / src / test / java / org / onap / aaf / auth / cmd / test / role / JU_List.java
index 0c85fc3..84b3caa 100644 (file)
@@ -87,7 +87,7 @@ public class JU_List {
        private class RolesStub extends Roles {
                public void addRole(aaf.v2_0.Role role) {
                        if (this.role == null) {
-                               this.role = new ArrayList<aaf.v2_0.Role>();
+                               this.role = new ArrayList<>();
                        }
                        this.role.add(role);
                }
@@ -97,7 +97,7 @@ public class JU_List {
                
                public void addPerms(Pkey perms) {
                if (this.perms == null) {
-                   this.perms = new ArrayList<Pkey>();
+                   this.perms = new ArrayList<>();
                }
                this.perms.add(perms); 
            }