summaryrefslogtreecommitdiffstats
path: root/framework/src/main/java/org
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-08 15:02:13 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-08 15:51:33 +0530
commit439d72d1b5e6bae5adc55029485d8e154e8e8b24 (patch)
treea74b06b5dd66683afde945f7ad40cc07d939add5 /framework/src/main/java/org
parentce812a8f9e6123ea329d994e588b41f92fb80501 (diff)
Default value for optional parameter set to blank
Issue-ID: CLI-99 Change-Id: I4e17be25d54b11d7bcd7ea3f151dd194230ae9ec Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main/java/org')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java6
1 files changed, 3 insertions, 3 deletions
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<String>();
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: