Sonar Major:Replace the type specification. 55/28155/1
authoraishkashyap <as00476394@techmahindra.com>
Mon, 15 Jan 2018 07:36:16 +0000 (13:06 +0530)
committeraishkashyap <as00476394@techmahindra.com>
Mon, 15 Jan 2018 07:36:22 +0000 (13:06 +0530)
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 <as00476394@techmahindra.com>
src/main/java/org/onap/aai/modelloader/entity/model/ModelSorter.java

index 825cbcb..6838719 100644 (file)
@@ -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<String, AbstractModelArtifact> versionIdToModelMap = new HashMap<String, AbstractModelArtifact>();
+    HashMap<String, AbstractModelArtifact> versionIdToModelMap = new HashMap<>();
     for (Artifact art : models) {
       AbstractModelArtifact ma = (AbstractModelArtifact) art;
       versionIdToModelMap.put(ma.getUniqueIdentifier(), ma);