Skip to content

Commit ee49343

Browse files
committed
remove the always true canEqual
1 parent ce51a61 commit ee49343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ object WrappedArray {
130130
def update(index: Int, elem: T) { array(index) = elem }
131131
override def hashCode = MurmurHash3.wrappedArrayHash(array)
132132
override def equals(that: Any) = that match {
133-
case that: ofRef[_] => that.array.canEqual(array) && array.sameElements(that.array)
133+
case that: ofRef[_] => array.sameElements(that.array)
134134
case _ => super.equals(that)
135135
}
136136
}

0 commit comments

Comments
 (0)