summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-05-11 17:26:52 +0000
committerPaul Phillips <paulp@improving.org>2009-05-11 17:26:52 +0000
commite4a8be83c10545e318fcb53bea39e86b26a71555 (patch)
treeb4a68bb01eab8a411f8b67f612ed65f3173f6395
parenta8acd9ecbea4f58fe474c44438da4918c7e1c1f4 (diff)
downloadscala-e4a8be83c10545e318fcb53bea39e86b26a71555.tar.gz
scala-e4a8be83c10545e318fcb53bea39e86b26a71555.tar.bz2
scala-e4a8be83c10545e318fcb53bea39e86b26a71555.zip
Cleaned up format a little further now that .to...
Cleaned up format a little further now that .toArray[Any] works.
-rw-r--r--src/library/scala/runtime/RichString.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/library/scala/runtime/RichString.scala b/src/library/scala/runtime/RichString.scala
index d63ca8607e..4a666c0b07 100644
--- a/src/library/scala/runtime/RichString.scala
+++ b/src/library/scala/runtime/RichString.scala
@@ -213,7 +213,6 @@ class RichString(val self: String) extends Proxy with Vector[Char] with VectorTe
* @throws java.lang.IllegalArgumentException
*/
def format(args : Any*) : String =
- // the toList is necessary right now because Array(1,2,3).toArray[Any] throws a CCE
- java.lang.String.format(self, args.toList.toArray[Any].asInstanceOf[Array[AnyRef]]: _*)
+ java.lang.String.format(self, args.toArray[Any].asInstanceOf[Array[AnyRef]]: _*)
}