diff options
author | Miles Sabin <miles@milessabin.com> | 2008-07-01 09:26:46 +0000 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2008-07-01 09:26:46 +0000 |
commit | d4115d48985d8d1aa76bc9a84c2f67ea8d631c60 (patch) | |
tree | f7801c81d53570a5d3c91e492e7027000a7a083d /src/compiler/scala/tools/nsc/Global.scala | |
parent | bb41ff09e1db4b7e633668f3b3ee4e91697b6d28 (diff) | |
download | scala-d4115d48985d8d1aa76bc9a84c2f67ea8d631c60.tar.gz scala-d4115d48985d8d1aa76bc9a84c2f67ea8d631c60.tar.bz2 scala-d4115d48985d8d1aa76bc9a84c2f67ea8d631c60.zip |
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.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 4 |
1 files changed, 2 insertions, 2 deletions
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 => |