ArrayInDataClass test: replace Arrays functions with Kotlin ones

This fixes relevant inspection test
This commit is contained in:
Mikhail Glukhikh
2018-09-12 17:53:10 +03:00
parent 4a3af36909
commit 2473362373
@@ -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()
} }
} }