diff options
author | Martin Odersky <odersky@gmail.com> | 2009-05-04 17:14:03 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-05-04 17:14:03 +0000 |
commit | 558808f135ca723a2469ae9164a0058ec2b1711e (patch) | |
tree | 5cbdc8e59c1fac8ca8fdafc0e65eb09c314700e8 /src/library | |
parent | c3989c5ba7f96e9e8d88a914e5b4aa33a05e4a98 (diff) | |
download | scala-558808f135ca723a2469ae9164a0058ec2b1711e.tar.gz scala-558808f135ca723a2469ae9164a0058ec2b1711e.tar.bz2 scala-558808f135ca723a2469ae9164a0058ec2b1711e.zip |
some cosmetic changes to make it compatible wit...
some cosmetic changes to make it compatible with new collections
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/runtime/BoxedObjectArray.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/runtime/BoxedObjectArray.scala b/src/library/scala/runtime/BoxedObjectArray.scala index 4146590be4..f1f845d37f 100644 --- a/src/library/scala/runtime/BoxedObjectArray.scala +++ b/src/library/scala/runtime/BoxedObjectArray.scala @@ -30,10 +30,10 @@ final class BoxedObjectArray[A <: AnyRef](val value: Array[AnyRef]) extends Boxe def unbox(elemClass: Class[_]): AnyRef = value override def equals(other: Any): Boolean = - value == other || - other.isInstanceOf[BoxedObjectArray[_]] && value == other.asInstanceOf[BoxedObjectArray[_]].value + (value eq other.asInstanceOf[AnyRef]) || + other.isInstanceOf[BoxedObjectArray[_]] && (value eq other.asInstanceOf[BoxedObjectArray[_]].value) - override def hashCode(): Int = value.hashCode() + override def hashCode(): Int = (value.asInstanceOf[AnyRef]).hashCode() private def create(length: Int): Array[AnyRef] = { createArray(value.getClass().getComponentType(), length).asInstanceOf[Array[AnyRef]] |