From 247336237329a03149bfac1580eb759ba8b070f0 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 12 Sep 2018 17:53:10 +0300 Subject: [PATCH] ArrayInDataClass test: replace Arrays functions with Kotlin ones This fixes relevant inspection test --- .../inspectionsLocal/arrayInDataClass/test.kt.after | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/idea/testData/inspectionsLocal/arrayInDataClass/test.kt.after b/idea/testData/inspectionsLocal/arrayInDataClass/test.kt.after index ad834d0d95d..050f735b3cb 100644 --- a/idea/testData/inspectionsLocal/arrayInDataClass/test.kt.after +++ b/idea/testData/inspectionsLocal/arrayInDataClass/test.kt.after @@ -1,5 +1,3 @@ -import java.util.Arrays - // WITH_RUNTIME data class A(val a: IntArray) { @@ -9,12 +7,12 @@ data class A(val a: IntArray) { other as A - if (!Arrays.equals(a, other.a)) return false + if (!a.contentEquals(other.a)) return false return true } override fun hashCode(): Int { - return Arrays.hashCode(a) + return a.contentHashCode() } } \ No newline at end of file