From 3eafc9f35e073fabc4289706a9a13cd2cbcd7b00 Mon Sep 17 00:00:00 2001 From: aishkashyap Date: Fri, 22 Dec 2017 12:03:32 +0530 Subject: 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 --- .../src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aai-resources/src/main/java/org/onap') 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 52fe859..54d1d1b 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; -- cgit 1.2.3-korg