Replace the type specification in constructor call 75/26775/1
authoraishkashyap <as00476394@techmahindra.com>
Fri, 22 Dec 2017 06:33:32 +0000 (12:03 +0530)
committeraishkashyap <as00476394@techmahindra.com>
Fri, 22 Dec 2017 06:33:38 +0000 (12:03 +0530)
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>
aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java

index 52fe859..54d1d1b 100644 (file)
@@ -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;