summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authoraishkashyap <as00476394@techmahindra.com>2018-01-15 13:06:16 +0530
committeraishkashyap <as00476394@techmahindra.com>2018-01-15 13:06:22 +0530
commit57eeee82bf5dcd9e81a3af15febb6053508889fe (patch)
treedad895f376d9fa82374e692e292a2c48784f3762 /src/main
parente8f57313f2d84d8851c7d935413d0e7b20db49a6 (diff)
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 <as00476394@techmahindra.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/onap/aai/modelloader/entity/model/ModelSorter.java4
1 files changed, 2 insertions, 2 deletions
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<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);