summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/MainTokenMetric.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/MainTokenMetric.scala')
-rw-r--r--src/compiler/scala/tools/nsc/MainTokenMetric.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/MainTokenMetric.scala b/src/compiler/scala/tools/nsc/MainTokenMetric.scala
index 20b4b2c48b..760ab12822 100644
--- a/src/compiler/scala/tools/nsc/MainTokenMetric.scala
+++ b/src/compiler/scala/tools/nsc/MainTokenMetric.scala
@@ -37,7 +37,7 @@ object MainTokenMetric {
def process(args: Array[String]) {
val settings = new Settings(error)
reporter = new ConsoleReporter(settings)
- val command = new CompilerCommand(List.fromArray(args), settings, error, false)
+ val command = new CompilerCommand(args.toList, settings, error, false)
try {
val compiler = new Global(command.settings, reporter)
tokenMetric(compiler, command.files)