From d27065a637bdd368533d5d6d927aea04e4a1b31a Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 25 Apr 2018 11:22:08 +0530 Subject: Use boolean parse instead Issue-ID: CLI-100 Change-Id: I937dae19cd6c4551689315c76971600e13ffa81b Signed-off-by: Kanagaraj Manickam k00365106 --- .../src/main/java/org/onap/cli/fw/cmd/OnapSchemaValidateCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/src/main/java') 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); } -- cgit 1.2.3-korg