Removed unnecessary cast to "String". 39/128239/2
authorsharath reddy <bs.reddy@huawei.com>
Thu, 31 Mar 2022 16:59:48 +0000 (22:29 +0530)
committersharath reddy <bs.reddy@huawei.com>
Thu, 31 Mar 2022 17:01:05 +0000 (22:31 +0530)
Issue-ID: CLI-439

report: tested weather-report

Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: I53fcf523ead9f8366cfcd06b1eee30ad9371f862
Signed-off-by: sharath reddy <bs.reddy@huawei.com>
profiles/http/src/main/java/org/onap/cli/fw/http/schema/OnapCommandSchemaHttpLoader.java

index a539ae1..1ed2d60 100644 (file)
@@ -140,7 +140,7 @@ public class OnapCommandSchemaHttpLoader {
                                                     Map<String, String> partMap = (Map<String, String>) 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);
                                                     }