We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f15f3a2 commit ce51a61Copy full SHA for ce51a61
library/src/scala/collection/mutable/WrappedArray.scala
@@ -130,7 +130,7 @@ object WrappedArray {
130
def update(index: Int, elem: T) { array(index) = elem }
131
override def hashCode = MurmurHash3.wrappedArrayHash(array)
132
override def equals(that: Any) = that match {
133
- case that: ofRef[_] => Arrays.equals(array.asInstanceOf[Array[AnyRef]], that.array.asInstanceOf[Array[AnyRef]])
+ case that: ofRef[_] => that.array.canEqual(array) && array.sameElements(that.array)
134
case _ => super.equals(that)
135
}
136
0 commit comments