From 54ed6615ef6b78e298171ecf960b96697a13e75d Mon Sep 17 00:00:00 2001 From: aishkashyap Date: Fri, 12 Jan 2018 15:02:57 +0530 Subject: Sonar Major: Replace the type specification. 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#resolved=false|assigned=false Location: src/main/java/org/onap/aai/modelloader/entity/model/ModelArtifactHandler.java Line No:60 Issue-ID: AAI-643 Change-Id: I231689bbf52153a0c806d8ee267d28fd9e6287f0 Signed-off-by: aishkashyap --- .../org/onap/aai/modelloader/entity/model/ModelArtifactHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/onap/aai/modelloader/entity/model/ModelArtifactHandler.java b/src/main/java/org/onap/aai/modelloader/entity/model/ModelArtifactHandler.java index 47d93e7..3a5b543 100644 --- a/src/main/java/org/onap/aai/modelloader/entity/model/ModelArtifactHandler.java +++ b/src/main/java/org/onap/aai/modelloader/entity/model/ModelArtifactHandler.java @@ -57,7 +57,7 @@ public class ModelArtifactHandler extends ArtifactHandler { // Push the ordered list of model artifacts to A&AI. If one fails, we need to roll back // the changes. - List completedModels = new ArrayList(); + List completedModels = new ArrayList<>(); AaiRestClient aaiClient = new AaiRestClient(config); for (Artifact art : sortedModelArtifacts) { -- cgit 1.2.3-korg