From af6c9402dcfaea05be99d8b58df7672b65660179 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Fri, 20 Apr 2018 18:17:41 +0530 Subject: Fails to clears interactive args list Issue-ID: CLI-100 Change-Id: I52252ec472c4b0d3427b6a5a6f5518f8e1b9d8ac Signed-off-by: Kanagaraj Manickam k00365106 --- main/src/main/java/org/onap/cli/main/OnapCli.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') 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)) { -- cgit 1.2.3-korg