Do not use the same named local var as memeber var 23/44623/1
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Wed, 25 Apr 2018 08:20:07 +0000 (13:50 +0530)
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Wed, 25 Apr 2018 08:20:07 +0000 (13:50 +0530)
Issue-ID: CLI-100

Change-Id: I07e967e02af66f5f60d9e402e8c2b91bb44d597a
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java

index 60443e2..708f8ed 100644 (file)
@@ -243,10 +243,10 @@ public class OnapHttpCommand extends OnapCommand {
         }
 
         //pre-process result map for spl entries and input parameters
-        for (Entry<String, String> resultMap : this.getResultMap().entrySet()) {
-            String value = OnapCommandUtils.replaceLineForSpecialValues(resultMap.getValue());
+        for (Entry<String, String> resultMapEntry : this.getResultMap().entrySet()) {
+            String value = OnapCommandUtils.replaceLineForSpecialValues(resultMapEntry.getValue());
             value = OnapCommandUtils.replaceLineFromInputParameters(value, this.getParametersMap());
-            this.resultMap.put(resultMap.getKey(), value);
+            this.resultMap.put(resultMapEntry.getKey(), value);
         }
 
         Map<String, ArrayList<String>> results = OnapCommandHttpUtils.populateOutputs(this.getResultMap(), output);