Skip to content

Commit adece18

Browse files
committed
remove the equals method, revert ofRef part of scala/scala#5551
1 parent ee49343 commit adece18

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

library/src/scala/collection/mutable/WrappedArray.scala

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ object WrappedArray {
129129
def apply(index: Int): T = array(index).asInstanceOf[T]
130130
def update(index: Int, elem: T) { array(index) = elem }
131131
override def hashCode = MurmurHash3.wrappedArrayHash(array)
132-
override def equals(that: Any) = that match {
133-
case that: ofRef[_] => array.sameElements(that.array)
134-
case _ => super.equals(that)
135-
}
136132
}
137133

138134
final class ofByte(val array: Array[Byte]) extends WrappedArray[Byte] with Serializable {

0 commit comments

Comments
 (0)