aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src')
-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: