From: aishkashyap Date: Fri, 22 Dec 2017 06:33:32 +0000 (+0530) Subject: Replace the type specification in constructor call X-Git-Tag: v1.2.0~42^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=3eafc9f35e073fabc4289706a9a13cd2cbcd7b00;p=aai%2Fresources.git Replace the type specification in constructor call Replace the type specification in constructor call with the diamond operator Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.aai.resources%3Aresources#statuses=OPEN|assigned=false|severities=MAJOR Location: src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java Line No:335 Change-Id: Iab8df89a6c049eeceaea880ed1e00f1f080a25af Issue-ID: AAI-581 Signed-off-by: aishkashyap --- diff --git a/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java b/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java index 52fe8599..54d1d1bd 100644 --- a/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java +++ b/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java @@ -332,7 +332,7 @@ public class ModelVersionTransformer extends RESTAPI { private Map getCurrentModelsFromGraph(HttpHeaders headers, String transactionId, UriInfo info) throws NoEdgeRuleFoundException, AAIException { TransactionalGraphEngine dbEngine = null; - Map modelVerModelMap = new HashMap() ; + Map modelVerModelMap = new HashMap<>() ; try { Version version = AAIProperties.LATEST;