Skip to content
This repository has been archived by the owner on Feb 23, 2018. It is now read-only.

Commit

Permalink
Merge pull request jline#126 from DavidEGrayson/console_runner_arg_ar…
Browse files Browse the repository at this point in the history
…ray_fix

ConsoleRunner: Fix an UnsupportedOperationException in main
  • Loading branch information
trptcolin committed May 11, 2014
2 parents 8742c21 + a138e7c commit 5284ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/jline/console/internal/ConsoleRunner.java
Expand Up @@ -37,7 +37,7 @@ public class ConsoleRunner
// FIXME: This is really ugly... re-write this

public static void main(final String[] args) throws Exception {
List<String> argList = Arrays.asList(args);
List<String> argList = new ArrayList(Arrays.asList(args));
if (argList.size() == 0) {
usage();
return;
Expand Down Expand Up @@ -90,4 +90,4 @@ private static void usage() {
+ "\nmangling when running ConsoleRunner on the same application."
+ "\n\nargs will be passed directly to the target class name.");
}
}
}

0 comments on commit 5284ad3

Please sign in to comment.