Replace Lists with new ArrayList 31/91631/1
authorPatrick Brady <patrick.brady@att.com>
Wed, 17 Jul 2019 22:02:37 +0000 (15:02 -0700)
committerPatrick Brady <patrick.brady@att.com>
Wed, 17 Jul 2019 22:02:59 +0000 (15:02 -0700)
The Lists.newArrayList method is not being used here in a
way that provides significant benefit over new ArrayList
and Lists was causing a class not found exception.

Change-Id: I61bbfc5e55cb283c10f3681a7e336ae346347d03
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Issue-ID: APPC-1613

appc-config/appc-config-params/provider/src/main/java/org/onap/sdnc/config/params/parser/PropertyDefinitionNode.java

index a35dbea..ab69584 100644 (file)
@@ -28,7 +28,6 @@ import com.att.eelf.configuration.EELFManager;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
-import com.google.common.collect.Lists;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.HashMap;
@@ -277,7 +276,8 @@ public class PropertyDefinitionNode implements SvcLogicJavaPlugin {
         } else {
             log.info("Creating/Adding New System Key " + parameter.getName() + ":"
                 + mapper.writeValueAsString(parameter));
-            List<String> l = Lists.newArrayList(parameter.getName());
+            List<String> l = new ArrayList<>();
+            l.add(parameter.getName());
             systemKeysMap.put(source, l);
         }
     }