From 75da5d3681c44326e4766ce9e3a110f11ee108d4 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Tue, 8 Jan 2019 11:06:22 +0530 Subject: fixed sonar issue in AAIRequest.java fixed sonar issue Issue-ID: CCSDK-525 Change-Id: Ia8f0883f29ae227225da393254106b4862dafffe Signed-off-by: Sandeep J --- .../src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIRequest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'aai-service/provider/src/main/java/org') diff --git a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIRequest.java b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIRequest.java index baceffab..82df6981 100755 --- a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIRequest.java +++ b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIRequest.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 @@ -292,7 +294,7 @@ public abstract class AAIRequest { // for group search add itself, but remove singular version of itself if(!uniqueResources.contains(resource)) { boolean replaced = false; - Set tmpUniqueResources = new HashSet(); + Set tmpUniqueResources = new HashSet<>(); tmpUniqueResources.addAll(uniqueResources); for(String item : tmpUniqueResources){ String plural = item +"s"; -- cgit 1.2.3-korg