From 6f633c06aef806e49b8a85d6ebb8f1af0a0a30a5 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 25 Apr 2018 11:32:24 +0530 Subject: Use entrySet instead Issue-ID: CLI-100 Change-Id: I1e8d8687c5c8f382062f350241c42d42de4ae9f7 Signed-off-by: Kanagaraj Manickam k00365106 --- framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfig.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'framework/src/main/java/org') 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 entry: ps.entrySet()) { + prps.put(entry.getKey(), entry.getValue()); } } -- cgit 1.2.3-korg