From 7ee6eebff636499e15314dbd1e6761289cd36f6a Mon Sep 17 00:00:00 2001 From: aishkashyap Date: Mon, 15 Jan 2018 12:52:24 +0530 Subject: Sonar Major:Replace with the diamond operator . Replace the type specification with the diamond operator. Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.aai.model-loader%3Amodel-loader#assignees=__me__|resolved=false Location: src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java Line No:57 Issue-ID: AAI-654 Change-Id: I07f671f845a535a542c0742b26ed085bc9f3db67 Signed-off-by: aishkashyap --- .../org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java b/src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java index 1e90a04..69aabf0 100644 --- a/src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java +++ b/src/main/java/org/onap/aai/modelloader/entity/model/ModelV8ArtifactParser.java @@ -54,7 +54,7 @@ public class ModelV8ArtifactParser implements IModelParser { public List parse(byte[] artifactPayload, String artifactName) { String payload = new String(artifactPayload); - List modelList = new ArrayList(); + List modelList = new ArrayList<>(); try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); -- cgit 1.2.3-korg