summaryrefslogtreecommitdiffstats
path: root/framework/src/main
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-25 11:22:08 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-25 11:22:08 +0530
commitd27065a637bdd368533d5d6d927aea04e4a1b31a (patch)
tree08bb9b637110c7166a126ef9dd603d42fc8f80e3 /framework/src/main
parent7bb115022adad0fec3d0c01fa79a4480b5c3a116 (diff)
Use boolean parse instead
Issue-ID: CLI-100 Change-Id: I937dae19cd6c4551689315c76971600e13ffa81b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/cmd/OnapSchemaValidateCommand.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/cmd/OnapSchemaValidateCommand.java b/framework/src/main/java/org/onap/cli/fw/cmd/OnapSchemaValidateCommand.java
index 8448276b..a805bb61 100644
--- a/framework/src/main/java/org/onap/cli/fw/cmd/OnapSchemaValidateCommand.java
+++ b/framework/src/main/java/org/onap/cli/fw/cmd/OnapSchemaValidateCommand.java
@@ -42,7 +42,8 @@ public class OnapSchemaValidateCommand extends OnapCommand {
String location = String.valueOf(locationParam.getValue());
OnapCommandParameter interSchemaParam = paramMap.get("internal-schema");
- boolean isInternalSchema = Boolean.valueOf(String.valueOf(interSchemaParam.getValue()));
+ boolean isInternalSchema = Boolean.parseBoolean(String.valueOf(interSchemaParam.getValue()));
+
if (isInternalSchema && location.startsWith("/")) {
location = location.substring(1);
}