From: Sandeep J Date: Tue, 8 Jan 2019 05:36:22 +0000 (+0530) Subject: fixed sonar issue in AAIRequest.java X-Git-Tag: 0.4.0~3 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=75da5d3681c44326e4766ce9e3a110f11ee108d4;p=ccsdk%2Fsli%2Fadaptors.git fixed sonar issue in AAIRequest.java fixed sonar issue Issue-ID: CCSDK-525 Change-Id: Ia8f0883f29ae227225da393254106b4862dafffe Signed-off-by: Sandeep J --- 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";