From: aishkashyap Date: Mon, 15 Jan 2018 07:36:16 +0000 (+0530) Subject: Sonar Major:Replace the type specification. X-Git-Tag: v1.2.0~19^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fmodel-loader.git;a=commitdiff_plain;h=57eeee82bf5dcd9e81a3af15febb6053508889fe 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#assignees=aishkashyap|resolved=false Location: src/mainn/java/org/onap/aai/modelloader/entity/model/ModelSorter.java Line No:136 Issue-ID: AAI-655 Change-Id: I1568a96c99992e38902ec7a53bb8b5f5a0acac5e Signed-off-by: aishkashyap --- diff --git a/src/main/java/org/onap/aai/modelloader/entity/model/ModelSorter.java b/src/main/java/org/onap/aai/modelloader/entity/model/ModelSorter.java index 825cbcb..6838719 100644 --- a/src/main/java/org/onap/aai/modelloader/entity/model/ModelSorter.java +++ b/src/main/java/org/onap/aai/modelloader/entity/model/ModelSorter.java @@ -1,4 +1,4 @@ -/** + /** * ============LICENSE_START======================================================= * org.onap.aai * ================================================================================ @@ -133,7 +133,7 @@ public class ModelSorter { // load list of models into a map, so we can later replace referenceIds with // real Models - HashMap versionIdToModelMap = new HashMap(); + HashMap versionIdToModelMap = new HashMap<>(); for (Artifact art : models) { AbstractModelArtifact ma = (AbstractModelArtifact) art; versionIdToModelMap.put(ma.getUniqueIdentifier(), ma);