Removed the unnecessary cast to "Map" 06/128206/1
authorsharath reddy <bs.reddy@huawei.com>
Wed, 30 Mar 2022 13:48:53 +0000 (19:18 +0530)
committersharath reddy <bs.reddy@huawei.com>
Wed, 30 Mar 2022 13:49:51 +0000 (19:19 +0530)
Issue-ID: CLI-439

Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Change-Id: Ib1493b31b9b2df0bed73e6dc0a9ec5f22a0c05c3

framework/src/main/java/org/onap/cli/fw/schema/OnapCommandSchemaLoader.java

index e051d5d..71a189e 100644 (file)
@@ -183,7 +183,7 @@ public class OnapCommandSchemaLoader {
         List<String> longOptions = new ArrayList<>();
 
         if (validate) {
-            OnapCommandUtils.validateTags(exceptionList, (Map<String, Object>) values, OnapCommandConfig.getCommaSeparatedList(TOP_LEVEL_PARAMS_LIST),
+            OnapCommandUtils.validateTags(exceptionList, values, OnapCommandConfig.getCommaSeparatedList(TOP_LEVEL_PARAMS_LIST),
                     OnapCommandConfig.getCommaSeparatedList(TOP_LEVEL_MANDATORY_LIST), "root level");
         }