From: sharath reddy Date: Thu, 31 Mar 2022 16:59:48 +0000 (+0530) Subject: Removed unnecessary cast to "String". X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=c185b5e5f1ff71309143ddcc1021fa792393efae;hp=b2aeb4fae1c300d0073b8291e7a5f11bc53d3043;p=cli.git Removed unnecessary cast to "String". Issue-ID: CLI-439 report: tested weather-report Signed-off-by: sharath reddy Change-Id: I53fcf523ead9f8366cfcd06b1eee30ad9371f862 Signed-off-by: sharath reddy --- diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java b/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java index a539ae16..1ed2d600 100644 --- a/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java +++ b/profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java @@ -140,7 +140,7 @@ public class OnapCommandSchemaHttpLoader { Map partMap = (Map) part; partO.setName(partMap.get("name")); partO.setContent(partMap.get("content")); - if (partMap.get("type") != null && ((String)partMap.get("type")).equalsIgnoreCase("file")) { + if (partMap.get("type") != null && (partMap.get("type")).equalsIgnoreCase("file")) { partO.setBinary(true); }