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>
// 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) {