From 0962aec456eb1ca34cbf5d35c616b34760d96cba Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Fri, 7 Jul 2017 13:58:05 +0300 Subject: [PATCH] Minor: don't use java.lang.Integer in common test --- .../testData/codegen/box/ranges/contains/inCustomObjectRange.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/testData/codegen/box/ranges/contains/inCustomObjectRange.kt b/compiler/testData/codegen/box/ranges/contains/inCustomObjectRange.kt index ed69d00b137..c52fda80d82 100644 --- a/compiler/testData/codegen/box/ranges/contains/inCustomObjectRange.kt +++ b/compiler/testData/codegen/box/ranges/contains/inCustomObjectRange.kt @@ -2,7 +2,7 @@ class A(val z: Int) : Comparable { override fun compareTo(other: A): Int { - return Integer.compare(z, other.z) + return z.compareTo(other.z) } }