summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-25 13:45:00 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-25 13:45:00 +0530
commit90653c9a321bfe92c7718b5448d51505e7c98c12 (patch)
treeb39c9e1e35c4d8efd7ae7a76cc34058c4f277d2a
parentf1c62af795fdb05dcfc9f2aef11e5a5e4fb2da2e (diff)
Keep constant on left side of comparsion
Issue-ID: CLI-100 Change-Id: Ic8928f44d5f9dad65aaaa960f091ed053f945936 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/cmd/OnapHttpCommand.java4
1 files changed, 2 insertions, 2 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 6574552e..60443e20 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
@@ -149,7 +149,7 @@ public class OnapHttpCommand extends OnapCommand {
@Override
protected void preRun() throws OnapCommandException {
Optional<OnapCommandParameter> verifyOpt = this.getParameters().stream()
- .filter(e -> e.getName().equals("verify"))
+ .filter(e -> "verify".equals(e.getName()))
.findFirst();
if(verifyOpt.isPresent()) {
shouldVerify = (boolean) verifyOpt.get().getValue();
@@ -181,7 +181,7 @@ public class OnapHttpCommand extends OnapCommand {
Map<String, String> map = (Map<String, String>) context.getValue();
mockingEnabled = map.containsKey(OnapCommandHttpConstants.VERIFY_DISABLE_MOCKING)
- && map.get(OnapCommandHttpConstants.VERIFY_DISABLE_MOCKING).equals("true") ? false : true;
+ && "true".equals(map.get(OnapCommandHttpConstants.VERIFY_DISABLE_MOCKING)) ? false : true;
if (mockingEnabled) {
String mockedFile = ((Map<String, String>) context.getValue()).get(OnapCommandConstants.VERIFY_MOCO);