Sonar Major: Replace the type specification. 31/28031/1
authoraishkashyap <as00476394@techmahindra.com>
Fri, 12 Jan 2018 09:32:57 +0000 (15:02 +0530)
committeraishkashyap <as00476394@techmahindra.com>
Fri, 12 Jan 2018 09:33:08 +0000 (15:03 +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|assigned=false

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

Line No:60

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

index 47d93e7..3a5b543 100644 (file)
@@ -57,7 +57,7 @@ public class ModelArtifactHandler extends ArtifactHandler {
     
     // Push the ordered list of model artifacts to A&AI.  If one fails, we need to roll back
     // the changes.
-    List<AbstractModelArtifact> completedModels = new ArrayList<AbstractModelArtifact>();
+    List<AbstractModelArtifact> completedModels = new ArrayList<>();
     AaiRestClient aaiClient = new AaiRestClient(config);
 
     for (Artifact art : sortedModelArtifacts) {