From bc5d38269f75683e459d1728352380919b4446a9 Mon Sep 17 00:00:00 2001 From: surya-huawei Date: Mon, 25 Sep 2017 14:42:11 +0530 Subject: Use Map's entrySet instead of keySet Major Sonar issue in sli/adaptors module *When both keys and values of map are used, using entrySet is more efficient Issue-Id: CCSDK-87 Change-Id: I1a8df0bc42de2c75b5217fd2570fb579d1897760 Signed-off-by: surya-huawei --- .../main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aai-service/provider') diff --git a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java index 447da3f2..f1663d2d 100755 --- a/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java +++ b/aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java @@ -1580,8 +1580,8 @@ public abstract class AAIDeclarations implements AAIClient { j++; } AAIRequest rlRequest = AAIRequest.createRequest(relatedTo, relParams); - for(String key : relParams.keySet()) { - rlRequest.addRequestProperty(key, relParams.get(key)); + for(Map.Entry entry : relParams.entrySet()) { + rlRequest.addRequestProperty(entry.getKey(), entry.getValue()); } String path = rlRequest.updatePathDataValues(null); relationship.setRelatedLink(path); -- cgit 1.2.3-korg