Commit includes ControlLoopPolicy API and bugfixes
[policy/engine.git] / ECOMP-PDP / src / test / java / org / openecomp / policy / pdp / test / conformance / ConformancePIPEngine.java
index 84012c0..6408541 100644 (file)
@@ -70,8 +70,8 @@ public class ConformancePIPEngine implements ConfigurableEngine {
        
        private String name;
        private String description;
-       private Map<String,PIPResponse> cache   = new HashMap<String,PIPResponse>();
-       private List<Attribute> listAttributes  = new ArrayList<Attribute>();
+       private Map<String,PIPResponse> cache   = new HashMap<>();
+       private List<Attribute> listAttributes  = new ArrayList<>();
        private DataTypeFactory dataTypeFactory;
        
        public ConformancePIPEngine() {
@@ -182,7 +182,7 @@ public class ConformancePIPEngine implements ConfigurableEngine {
                /*
                 * Iterate through the values and only return the ones that match the requested data type
                 */
-               List<AttributeValue<?>> matchingValues  = new ArrayList<AttributeValue<?>>();
+               List<AttributeValue<?>> matchingValues  = new ArrayList<>();
                Iterator<AttributeValue<?>> iterAttributeValues = attributeMatch.getValues().iterator();
                while (iterAttributeValues.hasNext()) {
                        AttributeValue<?> attributeValue        = iterAttributeValues.next();