aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/main')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java2
-rw-r--r--framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameterType.java18
2 files changed, 7 insertions, 13 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 00a93725..465dffa4 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
@@ -58,7 +58,7 @@ public class OnapCommandParameter {
/*
* Parameter type such as int, json, yaml, string, etc
*/
- private OnapCommandParameterType parameterType;
+ private OnapCommandParameterType parameterType = OnapCommandParameterType.STRING;
/*
* Default value
diff --git a/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameterType.java b/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameterType.java
index 85ace4a6..391383d4 100644
--- a/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameterType.java
+++ b/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameterType.java
@@ -23,18 +23,12 @@ import org.onap.cli.fw.error.OnapCommandInvalidParameterType;
*
*/
public enum OnapCommandParameterType {
- /**
- * JSON file.
- */
- JSON,
- /**
- * YAML file.
- */
- YAML, STRING, TEXT, DIGIT,
- /**
- * URL location.
- */
- URL, BOOL, ARRAY, MAP, BINARY, UUID;
+ STRING, JSON, YAML, TEXT, URL, UUID,
+ DIGIT,
+ BOOL,
+ ARRAY,
+ MAP,
+ BINARY;
/**
* Get parameter type.