From 5c2fe13a89bc5845fe5e48f8fa144cecd45e55e2 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Tue, 8 Nov 2016 18:23:50 +0300 Subject: [PATCH] Refer to java.util.Arrays fully-qualified in generated code --- libraries/stdlib/src/generated/_Arrays.kt | 240 +++++++++--------- .../kotlin-stdlib-gen/src/templates/Arrays.kt | 12 +- .../src/templates/SpecialJVM.kt | 26 +- 3 files changed, 139 insertions(+), 139 deletions(-) diff --git a/libraries/stdlib/src/generated/_Arrays.kt b/libraries/stdlib/src/generated/_Arrays.kt index 1e1b75c5903..8f67d8721bc 100644 --- a/libraries/stdlib/src/generated/_Arrays.kt +++ b/libraries/stdlib/src/generated/_Arrays.kt @@ -5158,7 +5158,7 @@ public fun CharArray.sortedWith(comparator: Comparator): List { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun Array.contentDeepEquals(other: Array): Boolean { - return Arrays.deepEquals(this, other) + return java.util.Arrays.deepEquals(this, other) } /** @@ -5171,7 +5171,7 @@ public inline infix fun Array.contentDeepEquals(other: Array): @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun Array.contentDeepHashCode(): Int { - return Arrays.deepHashCode(this) + return java.util.Arrays.deepHashCode(this) } /** @@ -5185,7 +5185,7 @@ public inline fun Array.contentDeepHashCode(): Int { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun Array.contentDeepToString(): String { - return Arrays.deepToString(this) + return java.util.Arrays.deepToString(this) } /** @@ -5196,7 +5196,7 @@ public inline fun Array.contentDeepToString(): String { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun Array.contentEquals(other: Array): Boolean { - return Arrays.equals(this, other) + return java.util.Arrays.equals(this, other) } /** @@ -5207,7 +5207,7 @@ public inline infix fun Array.contentEquals(other: Array): Boo @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun ByteArray.contentEquals(other: ByteArray): Boolean { - return Arrays.equals(this, other) + return java.util.Arrays.equals(this, other) } /** @@ -5218,7 +5218,7 @@ public inline infix fun ByteArray.contentEquals(other: ByteArray): Boolean { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun ShortArray.contentEquals(other: ShortArray): Boolean { - return Arrays.equals(this, other) + return java.util.Arrays.equals(this, other) } /** @@ -5229,7 +5229,7 @@ public inline infix fun ShortArray.contentEquals(other: ShortArray): Boolean { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun IntArray.contentEquals(other: IntArray): Boolean { - return Arrays.equals(this, other) + return java.util.Arrays.equals(this, other) } /** @@ -5240,7 +5240,7 @@ public inline infix fun IntArray.contentEquals(other: IntArray): Boolean { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun LongArray.contentEquals(other: LongArray): Boolean { - return Arrays.equals(this, other) + return java.util.Arrays.equals(this, other) } /** @@ -5251,7 +5251,7 @@ public inline infix fun LongArray.contentEquals(other: LongArray): Boolean { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun FloatArray.contentEquals(other: FloatArray): Boolean { - return Arrays.equals(this, other) + return java.util.Arrays.equals(this, other) } /** @@ -5262,7 +5262,7 @@ public inline infix fun FloatArray.contentEquals(other: FloatArray): Boolean { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { - return Arrays.equals(this, other) + return java.util.Arrays.equals(this, other) } /** @@ -5273,7 +5273,7 @@ public inline infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { - return Arrays.equals(this, other) + return java.util.Arrays.equals(this, other) } /** @@ -5284,7 +5284,7 @@ public inline infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline infix fun CharArray.contentEquals(other: CharArray): Boolean { - return Arrays.equals(this, other) + return java.util.Arrays.equals(this, other) } /** @@ -5294,7 +5294,7 @@ public inline infix fun CharArray.contentEquals(other: CharArray): Boolean { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun Array.contentHashCode(): Int { - return Arrays.hashCode(this) + return java.util.Arrays.hashCode(this) } /** @@ -5304,7 +5304,7 @@ public inline fun Array.contentHashCode(): Int { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun ByteArray.contentHashCode(): Int { - return Arrays.hashCode(this) + return java.util.Arrays.hashCode(this) } /** @@ -5314,7 +5314,7 @@ public inline fun ByteArray.contentHashCode(): Int { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun ShortArray.contentHashCode(): Int { - return Arrays.hashCode(this) + return java.util.Arrays.hashCode(this) } /** @@ -5324,7 +5324,7 @@ public inline fun ShortArray.contentHashCode(): Int { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun IntArray.contentHashCode(): Int { - return Arrays.hashCode(this) + return java.util.Arrays.hashCode(this) } /** @@ -5334,7 +5334,7 @@ public inline fun IntArray.contentHashCode(): Int { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun LongArray.contentHashCode(): Int { - return Arrays.hashCode(this) + return java.util.Arrays.hashCode(this) } /** @@ -5344,7 +5344,7 @@ public inline fun LongArray.contentHashCode(): Int { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun FloatArray.contentHashCode(): Int { - return Arrays.hashCode(this) + return java.util.Arrays.hashCode(this) } /** @@ -5354,7 +5354,7 @@ public inline fun FloatArray.contentHashCode(): Int { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun DoubleArray.contentHashCode(): Int { - return Arrays.hashCode(this) + return java.util.Arrays.hashCode(this) } /** @@ -5364,7 +5364,7 @@ public inline fun DoubleArray.contentHashCode(): Int { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun BooleanArray.contentHashCode(): Int { - return Arrays.hashCode(this) + return java.util.Arrays.hashCode(this) } /** @@ -5374,7 +5374,7 @@ public inline fun BooleanArray.contentHashCode(): Int { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun CharArray.contentHashCode(): Int { - return Arrays.hashCode(this) + return java.util.Arrays.hashCode(this) } /** @@ -5384,7 +5384,7 @@ public inline fun CharArray.contentHashCode(): Int { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun Array.contentToString(): String { - return Arrays.toString(this) + return java.util.Arrays.toString(this) } /** @@ -5394,7 +5394,7 @@ public inline fun Array.contentToString(): String { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun ByteArray.contentToString(): String { - return Arrays.toString(this) + return java.util.Arrays.toString(this) } /** @@ -5404,7 +5404,7 @@ public inline fun ByteArray.contentToString(): String { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun ShortArray.contentToString(): String { - return Arrays.toString(this) + return java.util.Arrays.toString(this) } /** @@ -5414,7 +5414,7 @@ public inline fun ShortArray.contentToString(): String { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun IntArray.contentToString(): String { - return Arrays.toString(this) + return java.util.Arrays.toString(this) } /** @@ -5424,7 +5424,7 @@ public inline fun IntArray.contentToString(): String { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun LongArray.contentToString(): String { - return Arrays.toString(this) + return java.util.Arrays.toString(this) } /** @@ -5434,7 +5434,7 @@ public inline fun LongArray.contentToString(): String { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun FloatArray.contentToString(): String { - return Arrays.toString(this) + return java.util.Arrays.toString(this) } /** @@ -5444,7 +5444,7 @@ public inline fun FloatArray.contentToString(): String { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun DoubleArray.contentToString(): String { - return Arrays.toString(this) + return java.util.Arrays.toString(this) } /** @@ -5454,7 +5454,7 @@ public inline fun DoubleArray.contentToString(): String { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun BooleanArray.contentToString(): String { - return Arrays.toString(this) + return java.util.Arrays.toString(this) } /** @@ -5464,7 +5464,7 @@ public inline fun BooleanArray.contentToString(): String { @SinceKotlin("1.1") @kotlin.internal.InlineOnly public inline fun CharArray.contentToString(): String { - return Arrays.toString(this) + return java.util.Arrays.toString(this) } /** @@ -12776,7 +12776,7 @@ public fun CharArray.asList(): List { */ @kotlin.jvm.JvmVersion public fun Array.binarySearch(element: T, comparator: Comparator, fromIndex: Int = 0, toIndex: Int = size): Int { - return Arrays.binarySearch(this, fromIndex, toIndex, element, comparator) + return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element, comparator) } /** @@ -12792,7 +12792,7 @@ public fun Array.binarySearch(element: T, comparator: Comparator Array.binarySearch(element: T, fromIndex: Int = 0, toIndex: Int = size): Int { - return Arrays.binarySearch(this, fromIndex, toIndex, element) + return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element) } /** @@ -12808,7 +12808,7 @@ public fun Array.binarySearch(element: T, fromIndex: Int = 0, toIndex */ @kotlin.jvm.JvmVersion public fun ByteArray.binarySearch(element: Byte, fromIndex: Int = 0, toIndex: Int = size): Int { - return Arrays.binarySearch(this, fromIndex, toIndex, element) + return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element) } /** @@ -12824,7 +12824,7 @@ public fun ByteArray.binarySearch(element: Byte, fromIndex: Int = 0, toIndex: In */ @kotlin.jvm.JvmVersion public fun ShortArray.binarySearch(element: Short, fromIndex: Int = 0, toIndex: Int = size): Int { - return Arrays.binarySearch(this, fromIndex, toIndex, element) + return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element) } /** @@ -12840,7 +12840,7 @@ public fun ShortArray.binarySearch(element: Short, fromIndex: Int = 0, toIndex: */ @kotlin.jvm.JvmVersion public fun IntArray.binarySearch(element: Int, fromIndex: Int = 0, toIndex: Int = size): Int { - return Arrays.binarySearch(this, fromIndex, toIndex, element) + return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element) } /** @@ -12856,7 +12856,7 @@ public fun IntArray.binarySearch(element: Int, fromIndex: Int = 0, toIndex: Int */ @kotlin.jvm.JvmVersion public fun LongArray.binarySearch(element: Long, fromIndex: Int = 0, toIndex: Int = size): Int { - return Arrays.binarySearch(this, fromIndex, toIndex, element) + return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element) } /** @@ -12872,7 +12872,7 @@ public fun LongArray.binarySearch(element: Long, fromIndex: Int = 0, toIndex: In */ @kotlin.jvm.JvmVersion public fun FloatArray.binarySearch(element: Float, fromIndex: Int = 0, toIndex: Int = size): Int { - return Arrays.binarySearch(this, fromIndex, toIndex, element) + return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element) } /** @@ -12888,7 +12888,7 @@ public fun FloatArray.binarySearch(element: Float, fromIndex: Int = 0, toIndex: */ @kotlin.jvm.JvmVersion public fun DoubleArray.binarySearch(element: Double, fromIndex: Int = 0, toIndex: Int = size): Int { - return Arrays.binarySearch(this, fromIndex, toIndex, element) + return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element) } /** @@ -12904,7 +12904,7 @@ public fun DoubleArray.binarySearch(element: Double, fromIndex: Int = 0, toIndex */ @kotlin.jvm.JvmVersion public fun CharArray.binarySearch(element: Char, fromIndex: Int = 0, toIndex: Int = size): Int { - return Arrays.binarySearch(this, fromIndex, toIndex, element) + return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element) } /** @@ -12913,7 +12913,7 @@ public fun CharArray.binarySearch(element: Char, fromIndex: Int = 0, toIndex: In @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun Array.copyOf(): Array { - return Arrays.copyOf(this, size) + return java.util.Arrays.copyOf(this, size) } /** @@ -12922,7 +12922,7 @@ public inline fun Array.copyOf(): Array { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun ByteArray.copyOf(): ByteArray { - return Arrays.copyOf(this, size) + return java.util.Arrays.copyOf(this, size) } /** @@ -12931,7 +12931,7 @@ public inline fun ByteArray.copyOf(): ByteArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun ShortArray.copyOf(): ShortArray { - return Arrays.copyOf(this, size) + return java.util.Arrays.copyOf(this, size) } /** @@ -12940,7 +12940,7 @@ public inline fun ShortArray.copyOf(): ShortArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun IntArray.copyOf(): IntArray { - return Arrays.copyOf(this, size) + return java.util.Arrays.copyOf(this, size) } /** @@ -12949,7 +12949,7 @@ public inline fun IntArray.copyOf(): IntArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun LongArray.copyOf(): LongArray { - return Arrays.copyOf(this, size) + return java.util.Arrays.copyOf(this, size) } /** @@ -12958,7 +12958,7 @@ public inline fun LongArray.copyOf(): LongArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun FloatArray.copyOf(): FloatArray { - return Arrays.copyOf(this, size) + return java.util.Arrays.copyOf(this, size) } /** @@ -12967,7 +12967,7 @@ public inline fun FloatArray.copyOf(): FloatArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun DoubleArray.copyOf(): DoubleArray { - return Arrays.copyOf(this, size) + return java.util.Arrays.copyOf(this, size) } /** @@ -12976,7 +12976,7 @@ public inline fun DoubleArray.copyOf(): DoubleArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun BooleanArray.copyOf(): BooleanArray { - return Arrays.copyOf(this, size) + return java.util.Arrays.copyOf(this, size) } /** @@ -12985,7 +12985,7 @@ public inline fun BooleanArray.copyOf(): BooleanArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun CharArray.copyOf(): CharArray { - return Arrays.copyOf(this, size) + return java.util.Arrays.copyOf(this, size) } /** @@ -12994,7 +12994,7 @@ public inline fun CharArray.copyOf(): CharArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun Array.copyOf(newSize: Int): Array { - return Arrays.copyOf(this, newSize) + return java.util.Arrays.copyOf(this, newSize) } /** @@ -13003,7 +13003,7 @@ public inline fun Array.copyOf(newSize: Int): Array { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun ByteArray.copyOf(newSize: Int): ByteArray { - return Arrays.copyOf(this, newSize) + return java.util.Arrays.copyOf(this, newSize) } /** @@ -13012,7 +13012,7 @@ public inline fun ByteArray.copyOf(newSize: Int): ByteArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun ShortArray.copyOf(newSize: Int): ShortArray { - return Arrays.copyOf(this, newSize) + return java.util.Arrays.copyOf(this, newSize) } /** @@ -13021,7 +13021,7 @@ public inline fun ShortArray.copyOf(newSize: Int): ShortArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun IntArray.copyOf(newSize: Int): IntArray { - return Arrays.copyOf(this, newSize) + return java.util.Arrays.copyOf(this, newSize) } /** @@ -13030,7 +13030,7 @@ public inline fun IntArray.copyOf(newSize: Int): IntArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun LongArray.copyOf(newSize: Int): LongArray { - return Arrays.copyOf(this, newSize) + return java.util.Arrays.copyOf(this, newSize) } /** @@ -13039,7 +13039,7 @@ public inline fun LongArray.copyOf(newSize: Int): LongArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun FloatArray.copyOf(newSize: Int): FloatArray { - return Arrays.copyOf(this, newSize) + return java.util.Arrays.copyOf(this, newSize) } /** @@ -13048,7 +13048,7 @@ public inline fun FloatArray.copyOf(newSize: Int): FloatArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun DoubleArray.copyOf(newSize: Int): DoubleArray { - return Arrays.copyOf(this, newSize) + return java.util.Arrays.copyOf(this, newSize) } /** @@ -13057,7 +13057,7 @@ public inline fun DoubleArray.copyOf(newSize: Int): DoubleArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun BooleanArray.copyOf(newSize: Int): BooleanArray { - return Arrays.copyOf(this, newSize) + return java.util.Arrays.copyOf(this, newSize) } /** @@ -13066,7 +13066,7 @@ public inline fun BooleanArray.copyOf(newSize: Int): BooleanArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun CharArray.copyOf(newSize: Int): CharArray { - return Arrays.copyOf(this, newSize) + return java.util.Arrays.copyOf(this, newSize) } /** @@ -13075,7 +13075,7 @@ public inline fun CharArray.copyOf(newSize: Int): CharArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun Array.copyOfRange(fromIndex: Int, toIndex: Int): Array { - return Arrays.copyOfRange(this, fromIndex, toIndex) + return java.util.Arrays.copyOfRange(this, fromIndex, toIndex) } /** @@ -13084,7 +13084,7 @@ public inline fun Array.copyOfRange(fromIndex: Int, toIndex: Int): Array< @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun ByteArray.copyOfRange(fromIndex: Int, toIndex: Int): ByteArray { - return Arrays.copyOfRange(this, fromIndex, toIndex) + return java.util.Arrays.copyOfRange(this, fromIndex, toIndex) } /** @@ -13093,7 +13093,7 @@ public inline fun ByteArray.copyOfRange(fromIndex: Int, toIndex: Int): ByteArray @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun ShortArray.copyOfRange(fromIndex: Int, toIndex: Int): ShortArray { - return Arrays.copyOfRange(this, fromIndex, toIndex) + return java.util.Arrays.copyOfRange(this, fromIndex, toIndex) } /** @@ -13102,7 +13102,7 @@ public inline fun ShortArray.copyOfRange(fromIndex: Int, toIndex: Int): ShortArr @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun IntArray.copyOfRange(fromIndex: Int, toIndex: Int): IntArray { - return Arrays.copyOfRange(this, fromIndex, toIndex) + return java.util.Arrays.copyOfRange(this, fromIndex, toIndex) } /** @@ -13111,7 +13111,7 @@ public inline fun IntArray.copyOfRange(fromIndex: Int, toIndex: Int): IntArray { @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun LongArray.copyOfRange(fromIndex: Int, toIndex: Int): LongArray { - return Arrays.copyOfRange(this, fromIndex, toIndex) + return java.util.Arrays.copyOfRange(this, fromIndex, toIndex) } /** @@ -13120,7 +13120,7 @@ public inline fun LongArray.copyOfRange(fromIndex: Int, toIndex: Int): LongArray @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun FloatArray.copyOfRange(fromIndex: Int, toIndex: Int): FloatArray { - return Arrays.copyOfRange(this, fromIndex, toIndex) + return java.util.Arrays.copyOfRange(this, fromIndex, toIndex) } /** @@ -13129,7 +13129,7 @@ public inline fun FloatArray.copyOfRange(fromIndex: Int, toIndex: Int): FloatArr @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun DoubleArray.copyOfRange(fromIndex: Int, toIndex: Int): DoubleArray { - return Arrays.copyOfRange(this, fromIndex, toIndex) + return java.util.Arrays.copyOfRange(this, fromIndex, toIndex) } /** @@ -13138,7 +13138,7 @@ public inline fun DoubleArray.copyOfRange(fromIndex: Int, toIndex: Int): DoubleA @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun BooleanArray.copyOfRange(fromIndex: Int, toIndex: Int): BooleanArray { - return Arrays.copyOfRange(this, fromIndex, toIndex) + return java.util.Arrays.copyOfRange(this, fromIndex, toIndex) } /** @@ -13147,7 +13147,7 @@ public inline fun BooleanArray.copyOfRange(fromIndex: Int, toIndex: Int): Boolea @kotlin.jvm.JvmVersion @kotlin.internal.InlineOnly public inline fun CharArray.copyOfRange(fromIndex: Int, toIndex: Int): CharArray { - return Arrays.copyOfRange(this, fromIndex, toIndex) + return java.util.Arrays.copyOfRange(this, fromIndex, toIndex) } /** @@ -13155,7 +13155,7 @@ public inline fun CharArray.copyOfRange(fromIndex: Int, toIndex: Int): CharArray */ @kotlin.jvm.JvmVersion public fun Array.fill(element: T, fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.fill(this, fromIndex, toIndex, element) + java.util.Arrays.fill(this, fromIndex, toIndex, element) } /** @@ -13163,7 +13163,7 @@ public fun Array.fill(element: T, fromIndex: Int = 0, toIndex: Int = size */ @kotlin.jvm.JvmVersion public fun ByteArray.fill(element: Byte, fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.fill(this, fromIndex, toIndex, element) + java.util.Arrays.fill(this, fromIndex, toIndex, element) } /** @@ -13171,7 +13171,7 @@ public fun ByteArray.fill(element: Byte, fromIndex: Int = 0, toIndex: Int = size */ @kotlin.jvm.JvmVersion public fun ShortArray.fill(element: Short, fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.fill(this, fromIndex, toIndex, element) + java.util.Arrays.fill(this, fromIndex, toIndex, element) } /** @@ -13179,7 +13179,7 @@ public fun ShortArray.fill(element: Short, fromIndex: Int = 0, toIndex: Int = si */ @kotlin.jvm.JvmVersion public fun IntArray.fill(element: Int, fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.fill(this, fromIndex, toIndex, element) + java.util.Arrays.fill(this, fromIndex, toIndex, element) } /** @@ -13187,7 +13187,7 @@ public fun IntArray.fill(element: Int, fromIndex: Int = 0, toIndex: Int = size): */ @kotlin.jvm.JvmVersion public fun LongArray.fill(element: Long, fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.fill(this, fromIndex, toIndex, element) + java.util.Arrays.fill(this, fromIndex, toIndex, element) } /** @@ -13195,7 +13195,7 @@ public fun LongArray.fill(element: Long, fromIndex: Int = 0, toIndex: Int = size */ @kotlin.jvm.JvmVersion public fun FloatArray.fill(element: Float, fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.fill(this, fromIndex, toIndex, element) + java.util.Arrays.fill(this, fromIndex, toIndex, element) } /** @@ -13203,7 +13203,7 @@ public fun FloatArray.fill(element: Float, fromIndex: Int = 0, toIndex: Int = si */ @kotlin.jvm.JvmVersion public fun DoubleArray.fill(element: Double, fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.fill(this, fromIndex, toIndex, element) + java.util.Arrays.fill(this, fromIndex, toIndex, element) } /** @@ -13211,7 +13211,7 @@ public fun DoubleArray.fill(element: Double, fromIndex: Int = 0, toIndex: Int = */ @kotlin.jvm.JvmVersion public fun BooleanArray.fill(element: Boolean, fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.fill(this, fromIndex, toIndex, element) + java.util.Arrays.fill(this, fromIndex, toIndex, element) } /** @@ -13219,7 +13219,7 @@ public fun BooleanArray.fill(element: Boolean, fromIndex: Int = 0, toIndex: Int */ @kotlin.jvm.JvmVersion public fun CharArray.fill(element: Char, fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.fill(this, fromIndex, toIndex, element) + java.util.Arrays.fill(this, fromIndex, toIndex, element) } /** @@ -13246,7 +13246,7 @@ public fun , R> Array<*>.filterIsInstanceTo(destinat @kotlin.jvm.JvmVersion public operator fun Array.plus(element: T): Array { val index = size - val result = Arrays.copyOf(this, index + 1) + val result = java.util.Arrays.copyOf(this, index + 1) result[index] = element return result } @@ -13257,7 +13257,7 @@ public operator fun Array.plus(element: T): Array { @kotlin.jvm.JvmVersion public operator fun ByteArray.plus(element: Byte): ByteArray { val index = size - val result = Arrays.copyOf(this, index + 1) + val result = java.util.Arrays.copyOf(this, index + 1) result[index] = element return result } @@ -13268,7 +13268,7 @@ public operator fun ByteArray.plus(element: Byte): ByteArray { @kotlin.jvm.JvmVersion public operator fun ShortArray.plus(element: Short): ShortArray { val index = size - val result = Arrays.copyOf(this, index + 1) + val result = java.util.Arrays.copyOf(this, index + 1) result[index] = element return result } @@ -13279,7 +13279,7 @@ public operator fun ShortArray.plus(element: Short): ShortArray { @kotlin.jvm.JvmVersion public operator fun IntArray.plus(element: Int): IntArray { val index = size - val result = Arrays.copyOf(this, index + 1) + val result = java.util.Arrays.copyOf(this, index + 1) result[index] = element return result } @@ -13290,7 +13290,7 @@ public operator fun IntArray.plus(element: Int): IntArray { @kotlin.jvm.JvmVersion public operator fun LongArray.plus(element: Long): LongArray { val index = size - val result = Arrays.copyOf(this, index + 1) + val result = java.util.Arrays.copyOf(this, index + 1) result[index] = element return result } @@ -13301,7 +13301,7 @@ public operator fun LongArray.plus(element: Long): LongArray { @kotlin.jvm.JvmVersion public operator fun FloatArray.plus(element: Float): FloatArray { val index = size - val result = Arrays.copyOf(this, index + 1) + val result = java.util.Arrays.copyOf(this, index + 1) result[index] = element return result } @@ -13312,7 +13312,7 @@ public operator fun FloatArray.plus(element: Float): FloatArray { @kotlin.jvm.JvmVersion public operator fun DoubleArray.plus(element: Double): DoubleArray { val index = size - val result = Arrays.copyOf(this, index + 1) + val result = java.util.Arrays.copyOf(this, index + 1) result[index] = element return result } @@ -13323,7 +13323,7 @@ public operator fun DoubleArray.plus(element: Double): DoubleArray { @kotlin.jvm.JvmVersion public operator fun BooleanArray.plus(element: Boolean): BooleanArray { val index = size - val result = Arrays.copyOf(this, index + 1) + val result = java.util.Arrays.copyOf(this, index + 1) result[index] = element return result } @@ -13334,7 +13334,7 @@ public operator fun BooleanArray.plus(element: Boolean): BooleanArray { @kotlin.jvm.JvmVersion public operator fun CharArray.plus(element: Char): CharArray { val index = size - val result = Arrays.copyOf(this, index + 1) + val result = java.util.Arrays.copyOf(this, index + 1) result[index] = element return result } @@ -13345,7 +13345,7 @@ public operator fun CharArray.plus(element: Char): CharArray { @kotlin.jvm.JvmVersion public operator fun Array.plus(elements: Collection): Array { var index = size - val result = Arrays.copyOf(this, index + elements.size) + val result = java.util.Arrays.copyOf(this, index + elements.size) for (element in elements) result[index++] = element return result } @@ -13356,7 +13356,7 @@ public operator fun Array.plus(elements: Collection): Array { @kotlin.jvm.JvmVersion public operator fun ByteArray.plus(elements: Collection): ByteArray { var index = size - val result = Arrays.copyOf(this, index + elements.size) + val result = java.util.Arrays.copyOf(this, index + elements.size) for (element in elements) result[index++] = element return result } @@ -13367,7 +13367,7 @@ public operator fun ByteArray.plus(elements: Collection): ByteArray { @kotlin.jvm.JvmVersion public operator fun ShortArray.plus(elements: Collection): ShortArray { var index = size - val result = Arrays.copyOf(this, index + elements.size) + val result = java.util.Arrays.copyOf(this, index + elements.size) for (element in elements) result[index++] = element return result } @@ -13378,7 +13378,7 @@ public operator fun ShortArray.plus(elements: Collection): ShortArray { @kotlin.jvm.JvmVersion public operator fun IntArray.plus(elements: Collection): IntArray { var index = size - val result = Arrays.copyOf(this, index + elements.size) + val result = java.util.Arrays.copyOf(this, index + elements.size) for (element in elements) result[index++] = element return result } @@ -13389,7 +13389,7 @@ public operator fun IntArray.plus(elements: Collection): IntArray { @kotlin.jvm.JvmVersion public operator fun LongArray.plus(elements: Collection): LongArray { var index = size - val result = Arrays.copyOf(this, index + elements.size) + val result = java.util.Arrays.copyOf(this, index + elements.size) for (element in elements) result[index++] = element return result } @@ -13400,7 +13400,7 @@ public operator fun LongArray.plus(elements: Collection): LongArray { @kotlin.jvm.JvmVersion public operator fun FloatArray.plus(elements: Collection): FloatArray { var index = size - val result = Arrays.copyOf(this, index + elements.size) + val result = java.util.Arrays.copyOf(this, index + elements.size) for (element in elements) result[index++] = element return result } @@ -13411,7 +13411,7 @@ public operator fun FloatArray.plus(elements: Collection): FloatArray { @kotlin.jvm.JvmVersion public operator fun DoubleArray.plus(elements: Collection): DoubleArray { var index = size - val result = Arrays.copyOf(this, index + elements.size) + val result = java.util.Arrays.copyOf(this, index + elements.size) for (element in elements) result[index++] = element return result } @@ -13422,7 +13422,7 @@ public operator fun DoubleArray.plus(elements: Collection): DoubleArray @kotlin.jvm.JvmVersion public operator fun BooleanArray.plus(elements: Collection): BooleanArray { var index = size - val result = Arrays.copyOf(this, index + elements.size) + val result = java.util.Arrays.copyOf(this, index + elements.size) for (element in elements) result[index++] = element return result } @@ -13433,7 +13433,7 @@ public operator fun BooleanArray.plus(elements: Collection): BooleanArr @kotlin.jvm.JvmVersion public operator fun CharArray.plus(elements: Collection): CharArray { var index = size - val result = Arrays.copyOf(this, index + elements.size) + val result = java.util.Arrays.copyOf(this, index + elements.size) for (element in elements) result[index++] = element return result } @@ -13445,7 +13445,7 @@ public operator fun CharArray.plus(elements: Collection): CharArray { public operator fun Array.plus(elements: Array): Array { val thisSize = size val arraySize = elements.size - val result = Arrays.copyOf(this, thisSize + arraySize) + val result = java.util.Arrays.copyOf(this, thisSize + arraySize) System.arraycopy(elements, 0, result, thisSize, arraySize) return result } @@ -13457,7 +13457,7 @@ public operator fun Array.plus(elements: Array): Array { public operator fun ByteArray.plus(elements: ByteArray): ByteArray { val thisSize = size val arraySize = elements.size - val result = Arrays.copyOf(this, thisSize + arraySize) + val result = java.util.Arrays.copyOf(this, thisSize + arraySize) System.arraycopy(elements, 0, result, thisSize, arraySize) return result } @@ -13469,7 +13469,7 @@ public operator fun ByteArray.plus(elements: ByteArray): ByteArray { public operator fun ShortArray.plus(elements: ShortArray): ShortArray { val thisSize = size val arraySize = elements.size - val result = Arrays.copyOf(this, thisSize + arraySize) + val result = java.util.Arrays.copyOf(this, thisSize + arraySize) System.arraycopy(elements, 0, result, thisSize, arraySize) return result } @@ -13481,7 +13481,7 @@ public operator fun ShortArray.plus(elements: ShortArray): ShortArray { public operator fun IntArray.plus(elements: IntArray): IntArray { val thisSize = size val arraySize = elements.size - val result = Arrays.copyOf(this, thisSize + arraySize) + val result = java.util.Arrays.copyOf(this, thisSize + arraySize) System.arraycopy(elements, 0, result, thisSize, arraySize) return result } @@ -13493,7 +13493,7 @@ public operator fun IntArray.plus(elements: IntArray): IntArray { public operator fun LongArray.plus(elements: LongArray): LongArray { val thisSize = size val arraySize = elements.size - val result = Arrays.copyOf(this, thisSize + arraySize) + val result = java.util.Arrays.copyOf(this, thisSize + arraySize) System.arraycopy(elements, 0, result, thisSize, arraySize) return result } @@ -13505,7 +13505,7 @@ public operator fun LongArray.plus(elements: LongArray): LongArray { public operator fun FloatArray.plus(elements: FloatArray): FloatArray { val thisSize = size val arraySize = elements.size - val result = Arrays.copyOf(this, thisSize + arraySize) + val result = java.util.Arrays.copyOf(this, thisSize + arraySize) System.arraycopy(elements, 0, result, thisSize, arraySize) return result } @@ -13517,7 +13517,7 @@ public operator fun FloatArray.plus(elements: FloatArray): FloatArray { public operator fun DoubleArray.plus(elements: DoubleArray): DoubleArray { val thisSize = size val arraySize = elements.size - val result = Arrays.copyOf(this, thisSize + arraySize) + val result = java.util.Arrays.copyOf(this, thisSize + arraySize) System.arraycopy(elements, 0, result, thisSize, arraySize) return result } @@ -13529,7 +13529,7 @@ public operator fun DoubleArray.plus(elements: DoubleArray): DoubleArray { public operator fun BooleanArray.plus(elements: BooleanArray): BooleanArray { val thisSize = size val arraySize = elements.size - val result = Arrays.copyOf(this, thisSize + arraySize) + val result = java.util.Arrays.copyOf(this, thisSize + arraySize) System.arraycopy(elements, 0, result, thisSize, arraySize) return result } @@ -13541,7 +13541,7 @@ public operator fun BooleanArray.plus(elements: BooleanArray): BooleanArray { public operator fun CharArray.plus(elements: CharArray): CharArray { val thisSize = size val arraySize = elements.size - val result = Arrays.copyOf(this, thisSize + arraySize) + val result = java.util.Arrays.copyOf(this, thisSize + arraySize) System.arraycopy(elements, 0, result, thisSize, arraySize) return result } @@ -13560,7 +13560,7 @@ public inline fun Array.plusElement(element: T): Array { */ @kotlin.jvm.JvmVersion public fun Array.sort(): Unit { - if (size > 1) Arrays.sort(this) + if (size > 1) java.util.Arrays.sort(this) } /** @@ -13568,7 +13568,7 @@ public fun Array.sort(): Unit { */ @kotlin.jvm.JvmVersion public fun ByteArray.sort(): Unit { - if (size > 1) Arrays.sort(this) + if (size > 1) java.util.Arrays.sort(this) } /** @@ -13576,7 +13576,7 @@ public fun ByteArray.sort(): Unit { */ @kotlin.jvm.JvmVersion public fun ShortArray.sort(): Unit { - if (size > 1) Arrays.sort(this) + if (size > 1) java.util.Arrays.sort(this) } /** @@ -13584,7 +13584,7 @@ public fun ShortArray.sort(): Unit { */ @kotlin.jvm.JvmVersion public fun IntArray.sort(): Unit { - if (size > 1) Arrays.sort(this) + if (size > 1) java.util.Arrays.sort(this) } /** @@ -13592,7 +13592,7 @@ public fun IntArray.sort(): Unit { */ @kotlin.jvm.JvmVersion public fun LongArray.sort(): Unit { - if (size > 1) Arrays.sort(this) + if (size > 1) java.util.Arrays.sort(this) } /** @@ -13600,7 +13600,7 @@ public fun LongArray.sort(): Unit { */ @kotlin.jvm.JvmVersion public fun FloatArray.sort(): Unit { - if (size > 1) Arrays.sort(this) + if (size > 1) java.util.Arrays.sort(this) } /** @@ -13608,7 +13608,7 @@ public fun FloatArray.sort(): Unit { */ @kotlin.jvm.JvmVersion public fun DoubleArray.sort(): Unit { - if (size > 1) Arrays.sort(this) + if (size > 1) java.util.Arrays.sort(this) } /** @@ -13616,7 +13616,7 @@ public fun DoubleArray.sort(): Unit { */ @kotlin.jvm.JvmVersion public fun CharArray.sort(): Unit { - if (size > 1) Arrays.sort(this) + if (size > 1) java.util.Arrays.sort(this) } /** @@ -13624,7 +13624,7 @@ public fun CharArray.sort(): Unit { */ @kotlin.jvm.JvmVersion public fun Array.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.sort(this, fromIndex, toIndex) + java.util.Arrays.sort(this, fromIndex, toIndex) } /** @@ -13632,7 +13632,7 @@ public fun Array.sort(fromIndex: Int = 0, toIndex: Int = size): Unit */ @kotlin.jvm.JvmVersion public fun ByteArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.sort(this, fromIndex, toIndex) + java.util.Arrays.sort(this, fromIndex, toIndex) } /** @@ -13640,7 +13640,7 @@ public fun ByteArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { */ @kotlin.jvm.JvmVersion public fun ShortArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.sort(this, fromIndex, toIndex) + java.util.Arrays.sort(this, fromIndex, toIndex) } /** @@ -13648,7 +13648,7 @@ public fun ShortArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { */ @kotlin.jvm.JvmVersion public fun IntArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.sort(this, fromIndex, toIndex) + java.util.Arrays.sort(this, fromIndex, toIndex) } /** @@ -13656,7 +13656,7 @@ public fun IntArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { */ @kotlin.jvm.JvmVersion public fun LongArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.sort(this, fromIndex, toIndex) + java.util.Arrays.sort(this, fromIndex, toIndex) } /** @@ -13664,7 +13664,7 @@ public fun LongArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { */ @kotlin.jvm.JvmVersion public fun FloatArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.sort(this, fromIndex, toIndex) + java.util.Arrays.sort(this, fromIndex, toIndex) } /** @@ -13672,7 +13672,7 @@ public fun FloatArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { */ @kotlin.jvm.JvmVersion public fun DoubleArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.sort(this, fromIndex, toIndex) + java.util.Arrays.sort(this, fromIndex, toIndex) } /** @@ -13680,7 +13680,7 @@ public fun DoubleArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { */ @kotlin.jvm.JvmVersion public fun CharArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.sort(this, fromIndex, toIndex) + java.util.Arrays.sort(this, fromIndex, toIndex) } /** @@ -13688,7 +13688,7 @@ public fun CharArray.sort(fromIndex: Int = 0, toIndex: Int = size): Unit { */ @kotlin.jvm.JvmVersion public fun Array.sortWith(comparator: Comparator): Unit { - if (size > 1) Arrays.sort(this, comparator) + if (size > 1) java.util.Arrays.sort(this, comparator) } /** @@ -13696,7 +13696,7 @@ public fun Array.sortWith(comparator: Comparator): Unit { */ @kotlin.jvm.JvmVersion public fun Array.sortWith(comparator: Comparator, fromIndex: Int = 0, toIndex: Int = size): Unit { - Arrays.sort(this, fromIndex, toIndex, comparator) + java.util.Arrays.sort(this, fromIndex, toIndex, comparator) } /** diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt index a3f351a9b67..a5d99b375ff 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt @@ -57,7 +57,7 @@ fun arrays(): List { """ } returns("Boolean") - body { "return Arrays.equals(this, other)" } + body { "return java.util.Arrays.equals(this, other)" } } templates add f("contentDeepEquals(other: SELF)") { @@ -76,7 +76,7 @@ fun arrays(): List { """ } returns("Boolean") - body { "return Arrays.deepEquals(this, other)" } + body { "return java.util.Arrays.deepEquals(this, other)" } } templates add f("contentToString()") { @@ -86,7 +86,7 @@ fun arrays(): List { inline(Inline.Only) doc { "Returns a string representation of the contents of the specified array as if it is [List]." } returns("String") - body { "return Arrays.toString(this)" } + body { "return java.util.Arrays.toString(this)" } } templates add f("contentDeepToString()") { @@ -104,7 +104,7 @@ fun arrays(): List { """ } returns("String") - body { "return Arrays.deepToString(this)" } + body { "return java.util.Arrays.deepToString(this)" } } templates add f("contentHashCode()") { @@ -116,7 +116,7 @@ fun arrays(): List { "Returns a hash code based on the contents of this array as if it is [List]." } returns("Int") - body { "return Arrays.hashCode(this)" } + body { "return java.util.Arrays.hashCode(this)" } } templates add f("contentDeepHashCode()") { @@ -133,7 +133,7 @@ fun arrays(): List { """ } returns("Int") - body { "return Arrays.deepHashCode(this)" } + body { "return java.util.Arrays.deepHashCode(this)" } } templates addAll PrimitiveType.defaultPrimitives.map { primitive -> diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJVM.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJVM.kt index 84889c308eb..fbd011c2247 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJVM.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJVM.kt @@ -39,7 +39,7 @@ fun specialJVM(): List { body() { """ val index = size - val result = Arrays.copyOf(this, index + 1) + val result = java.util.Arrays.copyOf(this, index + 1) result[index] = element return result """ @@ -55,7 +55,7 @@ fun specialJVM(): List { body { """ var index = size - val result = Arrays.copyOf(this, index + elements.size) + val result = java.util.Arrays.copyOf(this, index + elements.size) for (element in elements) result[index++] = element return result """ @@ -73,7 +73,7 @@ fun specialJVM(): List { """ val thisSize = size val arraySize = elements.size - val result = Arrays.copyOf(this, thisSize + arraySize) + val result = java.util.Arrays.copyOf(this, thisSize + arraySize) System.arraycopy(elements, 0, result, thisSize, arraySize) return result """ @@ -88,7 +88,7 @@ fun specialJVM(): List { doc { "Returns new array which is a copy of range of original array." } returns("SELF") body { - "return Arrays.copyOfRange(this, fromIndex, toIndex)" + "return java.util.Arrays.copyOfRange(this, fromIndex, toIndex)" } } @@ -99,7 +99,7 @@ fun specialJVM(): List { doc { "Returns new array which is a copy of the original array." } returns("SELF") body { - "return Arrays.copyOf(this, size)" + "return java.util.Arrays.copyOf(this, size)" } } @@ -112,7 +112,7 @@ fun specialJVM(): List { returns("SELF") returns(InvariantArraysOfObjects) { "Array" } body { - "return Arrays.copyOf(this, newSize)" + "return java.util.Arrays.copyOf(this, newSize)" } } @@ -122,7 +122,7 @@ fun specialJVM(): List { returns { "Unit" } body { """ - Arrays.fill(this, fromIndex, toIndex, element) + java.util.Arrays.fill(this, fromIndex, toIndex, element) """ } } @@ -145,7 +145,7 @@ fun specialJVM(): List { } returns("Int") body { - "return Arrays.binarySearch(this, fromIndex, toIndex, element)" + "return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element)" } } @@ -166,7 +166,7 @@ fun specialJVM(): List { } returns("Int") body { - "return Arrays.binarySearch(this, fromIndex, toIndex, element, comparator)" + "return java.util.Arrays.binarySearch(this, fromIndex, toIndex, element, comparator)" } } @@ -177,7 +177,7 @@ fun specialJVM(): List { doc { "Sorts the array in-place." } returns("Unit") body { - "if (size > 1) Arrays.sort(this)" + "if (size > 1) java.util.Arrays.sort(this)" } } @@ -187,7 +187,7 @@ fun specialJVM(): List { doc { "Sorts a range in the array in-place." } returns("Unit") body { - "Arrays.sort(this, fromIndex, toIndex)" + "java.util.Arrays.sort(this, fromIndex, toIndex)" } } @@ -196,7 +196,7 @@ fun specialJVM(): List { doc { "Sorts the array in-place with the given [comparator]." } returns("Unit") body { - "if (size > 1) Arrays.sort(this, comparator)" + "if (size > 1) java.util.Arrays.sort(this, comparator)" } } @@ -205,7 +205,7 @@ fun specialJVM(): List { doc { "Sorts a range in the array in-place with the given [comparator]." } returns("Unit") body { - "Arrays.sort(this, fromIndex, toIndex, comparator)" + "java.util.Arrays.sort(this, fromIndex, toIndex, comparator)" } }