summaryrefslogtreecommitdiff
path: root/src/library/scala/runtime/BoxedIntArray.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/runtime/BoxedIntArray.scala')
-rw-r--r--src/library/scala/runtime/BoxedIntArray.scala10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/library/scala/runtime/BoxedIntArray.scala b/src/library/scala/runtime/BoxedIntArray.scala
index 7cf7f48521..ad8db390d6 100644
--- a/src/library/scala/runtime/BoxedIntArray.scala
+++ b/src/library/scala/runtime/BoxedIntArray.scala
@@ -12,19 +12,21 @@
package scala.runtime
+import Predef.Class
+
[serializable]
final class BoxedIntArray(val value: Array[Int]) extends BoxedArray {
def length: Int = value.length
- def apply(index: Int): Object = BoxedInt.box(value(index))
+ def apply(index: Int): AnyRef = BoxedInt.box(value(index))
- def update(index: Int, elem: Object): Unit = {
+ def update(index: Int, elem: AnyRef): Unit = {
value(index) = elem.asInstanceOf[BoxedNumber].intValue()
}
- 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 ||