From d4115d48985d8d1aa76bc9a84c2f67ea8d631c60 Mon Sep 17 00:00:00 2001 From: Miles Sabin Date: Tue, 1 Jul 2008 09:26:46 +0000 Subject: Fixed (most of) the varargs warnings in the com... Fixed (most of) the varargs warnings in the compiler and libraries. Fixing the remaining ones in scala.tools.nsc.ObjectRunner will have to wait on a fix to #1003. --- src/compiler/scala/tools/nsc/Global.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/scala/tools/nsc/Global.scala') diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index fb346899cb..5b5bc45d9f 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -173,8 +173,8 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable } try { val clazz = Class.forName(settings.sourceReader.value) - val ccon = clazz.getConstructor(Array[Class[T] forSome { type T }](classOf[java.nio.charset.CharsetDecoder], classOf[Reporter])) - ccon.newInstance(Array[AnyRef] (charset.newDecoder(), reporter)).asInstanceOf[SourceReader]; + val ccon = clazz.getConstructor(classOf[java.nio.charset.CharsetDecoder], classOf[Reporter]) + ccon.newInstance(charset.newDecoder(), reporter).asInstanceOf[SourceReader]; //new SourceReader(charset.newDecoder()) } catch { case e => -- cgit v1.2.3