From bc58558fa52b9a65709d3b686402f8910b785eac Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Wed, 9 Jan 2019 11:38:54 +0530 Subject: fixed sonar issues in AAIServiceUtils.java fixed sonar issues Issue-ID: CCSDK-525 Change-Id: I9bf8336829eec56d5ddadef8adbb6b68b4cfbc99 Signed-off-by: Sandeep J --- .../main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceUtils.java b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceUtils.java index 6af9f9cd6..6c48c63dd 100755 --- a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceUtils.java +++ b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIServiceUtils.java @@ -5,6 +5,8 @@ * Copyright (C) 2017 AT&T Intellectual Property. All rights * reserved. * ================================================================================ + * Modifications Copyright (C) 2018 IBM. + * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -153,7 +155,7 @@ public class AAIServiceUtils { String term1 = null; String op = null; String term2 = null; - HashMap results = new HashMap(); + HashMap results = new HashMap<>(); for (int i = 0; i < keyTerms.length; i++) { if (term1 == null) { @@ -267,7 +269,7 @@ public class AAIServiceUtils { } protected static HashMap pathToHashMap(String path) { - HashMap nameValues = new HashMap(); + HashMap nameValues = new HashMap<>(); String[] split = path.split("/"); -- cgit 1.2.3-korg