fixed sonar issue in AAIRequest.java 29/75429/1
authorSandeep J <sandeejh@in.ibm.com>
Tue, 8 Jan 2019 05:36:22 +0000 (11:06 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Tue, 8 Jan 2019 05:36:34 +0000 (11:06 +0530)
fixed sonar issue

Issue-ID: CCSDK-525
Change-Id: Ia8f0883f29ae227225da393254106b4862dafffe
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIRequest.java

index baceffa..82df698 100755 (executable)
@@ -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<String> tmpUniqueResources = new HashSet<String>();
+                Set<String> tmpUniqueResources = new HashSet<>();
                 tmpUniqueResources.addAll(uniqueResources);
                 for(String item : tmpUniqueResources){
                     String plural = item +"s";