ArrayInDataClass test: replace Arrays functions with Kotlin ones
This fixes relevant inspection test
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
import java.util.Arrays
|
|
||||||
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
data class A(val a: IntArray) {
|
data class A(val a: IntArray) {
|
||||||
@@ -9,12 +7,12 @@ data class A(val a: IntArray) {
|
|||||||
|
|
||||||
other as A
|
other as A
|
||||||
|
|
||||||
if (!Arrays.equals(a, other.a)) return false
|
if (!a.contentEquals(other.a)) return false
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun hashCode(): Int {
|
override fun hashCode(): Int {
|
||||||
return Arrays.hashCode(a)
|
return a.contentHashCode()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user