diff options
author | surya-huawei <a.u.surya@huawei.com> | 2017-09-25 14:42:11 +0530 |
---|---|---|
committer | SURYA A U <a.u.surya@huawei.com> | 2017-09-25 09:21:18 +0000 |
commit | bc5d38269f75683e459d1728352380919b4446a9 (patch) | |
tree | 154e8506ffcc86876b7a99e43d5e11a0f495c7ea /aai-service/provider/src/main | |
parent | bb8927cc8d8249bc8aadd78c3f8105cf3e309bb7 (diff) |
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 <a.u.surya@huawei.com>
Diffstat (limited to 'aai-service/provider/src/main')
-rwxr-xr-x | aai-service/provider/src/main/java/org/onap/ccsdk/sli/adaptors/aai/AAIDeclarations.java | 4 |
1 files changed, 2 insertions, 2 deletions
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<String,String> entry : relParams.entrySet()) { + rlRequest.addRequestProperty(entry.getKey(), entry.getValue()); } String path = rlRequest.updatePathDataValues(null); relationship.setRelatedLink(path); |