From 5117e732ffc657571a7d58e4595aca4bce8bfb8e Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 25 Apr 2018 13:50:07 +0530 Subject: Do not use the same named local var as memeber var Issue-ID: CLI-100 Change-Id: I07e967e02af66f5f60d9e402e8c2b91bb44d597a Signed-off-by: Kanagaraj Manickam k00365106 --- .../src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'profiles/http/src/main/java') diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java b/profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java index 60443e20..708f8edb 100644 --- a/profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java +++ b/profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java @@ -243,10 +243,10 @@ public class OnapHttpCommand extends OnapCommand { } //pre-process result map for spl entries and input parameters - for (Entry resultMap : this.getResultMap().entrySet()) { - String value = OnapCommandUtils.replaceLineForSpecialValues(resultMap.getValue()); + for (Entry 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> results = OnapCommandHttpUtils.populateOutputs(this.getResultMap(), output); -- cgit 1.2.3-korg