Collection syntax change because of Sonar
[aaf/authz.git] / auth / auth-cass / src / main / java / org / onap / aaf / auth / dao / cass / OAuthTokenDAO.java
index e1375b8..4fe3aaa 100644 (file)
@@ -80,9 +80,9 @@ public class OAuthTokenDAO extends CassDAOImpl<AuthzTrans,OAuthTokenDAO.Data> {
 
                public Set<String> scopes(boolean mutable) {
                        if (scopes == null) {
-                               scopes = new HashSet<String>();
+                               scopes = new HashSet<>();
                        } else if (mutable && !(scopes instanceof HashSet)) {
-                               scopes = new HashSet<String>(scopes);
+                               scopes = new HashSet<>(scopes);
                        }
                        return scopes;
                }