From 57eeee82bf5dcd9e81a3af15febb6053508889fe Mon Sep 17 00:00:00 2001 From: aishkashyap Date: Mon, 15 Jan 2018 13:06:16 +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#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 --- src/main/java/org/onap/aai/modelloader/entity/model/ModelSorter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit 1.2.3-korg