Sonar Major:Replace the type specification. 51/28051/1
authoraishkashyap <as00476394@techmahindra.com>
Fri, 12 Jan 2018 12:28:10 +0000 (17:58 +0530)
committeraishkashyap <as00476394@techmahindra.com>
Fri, 12 Jan 2018 12:28:17 +0000 (17:58 +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#resolved=false|assignees=aishkashyap

Location:
src/main/java/org/onap/aai/modelloader/entity/model/AbstractModelArtifact.java

Line No:39

Issue-ID: AAI-646
Change-Id: I704dfd58340402982f4063e94e80b58ff158c8da
Signed-off-by: aishkashyap <as00476394@techmahindra.com>
src/main/java/org/onap/aai/modelloader/entity/model/AbstractModelArtifact.java

index a942cf6..4571345 100644 (file)
@@ -36,7 +36,7 @@ public abstract class AbstractModelArtifact extends Artifact {
                 
   private String modelNamespace;
   private String modelNamespaceVersion;
-       private Set<String> referencedModelIds = new HashSet<String>(); 
+       private Set<String> referencedModelIds = new HashSet<>(); 
 
        public AbstractModelArtifact(ArtifactType type) {
          super(type);