summaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-20 18:17:41 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-20 18:17:41 +0530
commitaf6c9402dcfaea05be99d8b58df7672b65660179 (patch)
tree291527dfbb0a65a9fdef09ee0f9246078fb59b69 /main/src
parentb40d11e8a7fa8b966848911fe2f36adfea9161e1 (diff)
Fails to clears interactive args list
Issue-ID: CLI-100 Change-Id: I52252ec472c4b0d3427b6a5a6f5518f8e1b9d8ac Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/org/onap/cli/main/OnapCli.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/org/onap/cli/main/OnapCli.java b/main/src/main/java/org/onap/cli/main/OnapCli.java
index e7fddcd5..43fa72ed 100644
--- a/main/src/main/java/org/onap/cli/main/OnapCli.java
+++ b/main/src/main/java/org/onap/cli/main/OnapCli.java
@@ -302,7 +302,7 @@ public class OnapCli {
console.clearScreen();
continue;
}
- this.args.clear();
+ this.args = new ArrayList<>();
this.args.addAll(Arrays.asList(line.split(OnapCliConstants.PARAM_INTERACTIVE_ARG_SPLIT_PATTERN)));
if (!args.isEmpty() && this.args.get(0).equals(OnapCliConstants.PARAM_INTERACTIVE_USE)) {