summaryrefslogtreecommitdiffstats
path: root/profiles
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-25 13:50:07 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-25 13:50:07 +0530
commit5117e732ffc657571a7d58e4595aca4bce8bfb8e (patch)
tree7ac84a32b11d1223942de9621f3aba25b46bfb1b /profiles
parentd80bf4acdffec806a032cb93fd1279efffa97a6f (diff)
Do not use the same named local var as memeber var
Issue-ID: CLI-100 Change-Id: I07e967e02af66f5f60d9e402e8c2b91bb44d597a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'profiles')
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java6
1 files changed, 3 insertions, 3 deletions
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<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);