From 439d72d1b5e6bae5adc55029485d8e154e8e8b24 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 8 Mar 2018 15:02:13 +0530 Subject: Default value for optional parameter set to blank Issue-ID: CLI-99 Change-Id: I4e17be25d54b11d7bcd7ea3f151dd194230ae9ec Signed-off-by: Kanagaraj Manickam k00365106 --- .../src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/src/main/java/org/onap') diff --git a/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java b/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java index 22f341d5..31897850 100644 --- a/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java +++ b/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java @@ -162,13 +162,13 @@ public class OnapCommandParameter { defaultValue = new ArrayList(); break; case BOOL: - defaultValue = false; + defaultValue = Boolean.FALSE; break; case UUID: this.defaultValue = UUID.randomUUID().toString(); break; default: - this.defaultValue = null; + this.defaultValue = new String(""); break; } } @@ -223,7 +223,7 @@ public class OnapCommandParameter { break; case BOOL: - defaultValue = processedValue.equalsIgnoreCase("true"); + defaultValue = Boolean.parseBoolean(processedValue); break; default: -- cgit 1.2.3-korg