From 9b3852f26201aee7761637f89979dab2a71294a9 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 1 Apr 2011 05:02:30 +0000 Subject: A less ad hoc infrastructure for generating Any... A less ad hoc infrastructure for generating AnyVal sources. A few more comments on said sources. No review. --- src/library/scala/Char.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/library/scala/Char.scala') diff --git a/src/library/scala/Char.scala b/src/library/scala/Char.scala index b1c9d8e6d4..a5d1cb019b 100644 --- a/src/library/scala/Char.scala +++ b/src/library/scala/Char.scala @@ -16,7 +16,6 @@ package scala * There is an implicit conversion from [[scala.Char]] => [[scala.runtime.RichChar]] * which provides useful non-primitive operations. */ - final class Char extends AnyVal { def toByte: Byte = sys.error("stub") def toShort: Short = sys.error("stub") @@ -147,7 +146,6 @@ final class Char extends AnyVal { } - object Char extends AnyValCompanion { /** The smallest value representable as a Char. */ @@ -168,7 +166,7 @@ object Char extends AnyValCompanion { * method is not typesafe: it accepts any Object, but will throw * an exception if the argument is not a java.lang.Character. * - * @param x the Char to be unboxed. + * @param x the java.lang.Character to be unboxed. * @throws ClassCastException if the argument is not a java.lang.Character * @return the Char resulting from calling charValue() on `x` */ @@ -178,3 +176,4 @@ object Char extends AnyValCompanion { */ override def toString = "object scala.Char" } + -- cgit v1.2.3