From: aishkashyap Date: Fri, 12 Jan 2018 09:32:57 +0000 (+0530) Subject: Sonar Major: Replace the type specification. X-Git-Tag: v1.2.0~22 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fmodel-loader.git;a=commitdiff_plain;h=54ed6615ef6b78e298171ecf960b96697a13e75d 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 --- 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) {