sonar fix
[aaf/authz.git] / cadi / core / src / main / java / org / onap / aaf / cadi / PropAccess.java
index c827477..6a932c4 100644 (file)
@@ -40,7 +40,7 @@ public class PropAccess implements Access {
        // Sonar says cannot be static... it's ok.  not too many PropAccesses created.
        private final SimpleDateFormat iso8601 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
 
-       public static Level DEFAULT = Level.AUDIT;
+       public static final Level DEFAULT = Level.AUDIT;
        
        private Symm symm;
        private int level;
@@ -184,7 +184,7 @@ public class PropAccess implements Access {
                                                String chainProp = props.getProperty(Config.CADI_PROP_FILES);
                                                if(chainProp!=null) {
                                                        if(recursionProtection==null) {
-                                                               recursionProtection = new ArrayList<String>();
+                                                               recursionProtection = new ArrayList<>();
                                                                recursionProtection.add(cadi_prop_files);
                                                        }
                                                        if(!recursionProtection.contains(chainProp)) {