diff options
Diffstat (limited to 'src/library/scala/runtime/BoxedCharArray.scala')
-rw-r--r-- | src/library/scala/runtime/BoxedCharArray.scala | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/library/scala/runtime/BoxedCharArray.scala b/src/library/scala/runtime/BoxedCharArray.scala index fe86be40c5..928d3f67cc 100644 --- a/src/library/scala/runtime/BoxedCharArray.scala +++ b/src/library/scala/runtime/BoxedCharArray.scala @@ -12,19 +12,21 @@ package scala.runtime; +import Predef.Class + [serializable] final class BoxedCharArray(val value: Array[Char]) extends BoxedArray { def length: Int = value.length; - def apply(index: Int): Object = BoxedChar.box(value(index)); + def apply(index: Int): AnyRef = BoxedChar.box(value(index)); - def update(index: Int, elem: Object): Unit = { + def update(index: Int, elem: AnyRef): Unit = { value(index) = elem.asInstanceOf[BoxedNumber].charValue() } - def unbox(elemTag: String): Object = value; - def unbox(elemClass: Class): Object = value; + def unbox(elemTag: String): AnyRef = value; + def unbox(elemClass: Class): AnyRef = value; override def equals(other: Any) = ( value == other || |