summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-25 11:32:24 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-25 11:32:24 +0530
commit6f633c06aef806e49b8a85d6ebb8f1af0a0a30a5 (patch)
tree0084e0bc81ed7762d58b523c5462731510ed0591 /framework
parent594fa285ca4ffe1184c6c2c355d12c839b2e1dc0 (diff)
Use entrySet instead
Issue-ID: CLI-100 Change-Id: I1e8d8687c5c8f382062f350241c42d42de4ae9f7 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfig.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfig.java b/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfig.java
index 07c01a1e..c59521e0 100644
--- a/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfig.java
+++ b/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfig.java
@@ -18,6 +18,7 @@ package org.onap.cli.fw.conf;
import java.util.Arrays;
import java.util.List;
+import java.util.Map.Entry;
import java.util.Properties;
import java.util.stream.Collectors;
@@ -55,8 +56,8 @@ public final class OnapCommandConfig {
Properties ps = new Properties();
loadProperties(ps, fileName);
- for (Object key: ps.keySet()) {
- prps.put(key, ps.get(key));
+ for (Entry<Object, Object> entry: ps.entrySet()) {
+ prps.put(entry.getKey(), entry.getValue());
}
}