summaryrefslogtreecommitdiffstats
path: root/adapters/mso-network-adapter/src/main/java/org
diff options
context:
space:
mode:
authorrama-huawei <rama.subba.reddy.s@huawei.com>2017-10-12 18:29:00 +0530
committerRama SubbaReddy <rama.subba.reddy.s@huawei.com>2017-10-12 13:52:58 +0000
commitef997d8b2f30943ade21feeab059cc497b121242 (patch)
tree55a350ee115568fd5ad34316df61dd5dadbad998 /adapters/mso-network-adapter/src/main/java/org
parent1dd7ae2e894dfa7e1fa634fdbfe5be2b4ef38287 (diff)
Iterate over entrySet instead of keySet
Issue-id: SO-214 Change-Id: I7035fb50a0025f0da72eacfe9cee706799202cf7 Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'adapters/mso-network-adapter/src/main/java/org')
-rw-r--r--adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/MsoNetworkAdapterAsyncImpl.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/MsoNetworkAdapterAsyncImpl.java b/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/MsoNetworkAdapterAsyncImpl.java
index 74c39af68a..b3ed711cf5 100644
--- a/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/MsoNetworkAdapterAsyncImpl.java
+++ b/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/MsoNetworkAdapterAsyncImpl.java
@@ -653,9 +653,11 @@ public class MsoNetworkAdapterAsyncImpl implements MsoNetworkAdapterAsync {
sMap = hMap.value;
UpdateNetworkNotification.SubnetIdMap.Entry entry = new UpdateNetworkNotification.SubnetIdMap.Entry ();
- for (String key : sMap.keySet ()) {
+ for (Map.Entry<String,String> mapEntry : sMap.entrySet ()) {
+ String key = mapEntry.getKey();
+ String value = mapEntry.getValue();
entry.setKey (key);
- entry.setValue (sMap.get (key));
+ entry.setValue (value);
subnetIdMap.getEntry ().add (entry);
}
}
@@ -671,9 +673,11 @@ public class MsoNetworkAdapterAsyncImpl implements MsoNetworkAdapterAsync {
sMap = hMap.value;
QueryNetworkNotification.SubnetIdMap.Entry entry = new QueryNetworkNotification.SubnetIdMap.Entry ();
- for (String key : sMap.keySet ()) {
+ for (Map.Entry<String,String> mapEntry : sMap.entrySet ()) {
+ String key = mapEntry.getKey();
+ String value = mapEntry.getValue();
entry.setKey (key);
- entry.setValue (sMap.get (key));
+ entry.setValue (value);
subnetIdMap.getEntry ().add (entry);
}
}