diff options
author | Paul Phillips <paulp@improving.org> | 2009-05-11 17:26:52 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-05-11 17:26:52 +0000 |
commit | e4a8be83c10545e318fcb53bea39e86b26a71555 (patch) | |
tree | b4a68bb01eab8a411f8b67f612ed65f3173f6395 /src | |
parent | a8acd9ecbea4f58fe474c44438da4918c7e1c1f4 (diff) | |
download | scala-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/runtime/RichString.scala | 3 |
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]]: _*) } |