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>
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;