summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraishkashyap <as00476394@techmahindra.com>2017-12-22 12:03:32 +0530
committeraishkashyap <as00476394@techmahindra.com>2017-12-22 12:03:38 +0530
commit3eafc9f35e073fabc4289706a9a13cd2cbcd7b00 (patch)
treeb87bbe2aa63c5a991b7405b45da96c500a8a888c
parent3c7c42eced8d5d15c026a1fa7264683fb4b3a562 (diff)
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 <as00476394@techmahindra.com>
-rw-r--r--aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java2
1 files changed, 1 insertions, 1 deletions
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<String, String> getCurrentModelsFromGraph(HttpHeaders headers, String transactionId, UriInfo info) throws NoEdgeRuleFoundException, AAIException {
TransactionalGraphEngine dbEngine = null;
- Map<String, String> modelVerModelMap = new HashMap<String,String>() ;
+ Map<String, String> modelVerModelMap = new HashMap<>() ;
try {
Version version = AAIProperties.LATEST;