Replace @LowPriorityInOverloadResolution with @DeprecatedSinceKotlin #KT-37101

This commit is contained in:
Abduqodiri Qurbonzoda
2020-07-08 05:01:55 +03:00
parent 4ac1b7748a
commit d2c9fc41f1
15 changed files with 462 additions and 217 deletions
@@ -275,8 +275,9 @@ public actual fun <T> Array<out T>?.contentDeepToString(): String {
* The elements are compared for equality with the [equals][Any.equals] function.
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boolean {
return this.contentEquals(other)
}
@@ -288,8 +289,9 @@ public actual infix fun <T> Array<out T>.contentEquals(other: Array<out T>): Boo
* The elements are compared for equality with the [equals][Any.equals] function.
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean {
return this.contentEquals(other)
}
@@ -301,8 +303,9 @@ public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean {
* The elements are compared for equality with the [equals][Any.equals] function.
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean {
return this.contentEquals(other)
}
@@ -314,8 +317,9 @@ public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean {
* The elements are compared for equality with the [equals][Any.equals] function.
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual infix fun IntArray.contentEquals(other: IntArray): Boolean {
return this.contentEquals(other)
}
@@ -327,8 +331,9 @@ public actual infix fun IntArray.contentEquals(other: IntArray): Boolean {
* The elements are compared for equality with the [equals][Any.equals] function.
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual infix fun LongArray.contentEquals(other: LongArray): Boolean {
return this.contentEquals(other)
}
@@ -340,8 +345,9 @@ public actual infix fun LongArray.contentEquals(other: LongArray): Boolean {
* The elements are compared for equality with the [equals][Any.equals] function.
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean {
return this.contentEquals(other)
}
@@ -353,8 +359,9 @@ public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean {
* The elements are compared for equality with the [equals][Any.equals] function.
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean {
return this.contentEquals(other)
}
@@ -366,8 +373,9 @@ public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean {
* The elements are compared for equality with the [equals][Any.equals] function.
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean {
return this.contentEquals(other)
}
@@ -379,8 +387,9 @@ public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean
* The elements are compared for equality with the [equals][Any.equals] function.
* For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`.
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual infix fun CharArray.contentEquals(other: CharArray): Boolean {
return this.contentEquals(other)
}
@@ -496,8 +505,9 @@ public actual infix fun CharArray?.contentEquals(other: CharArray?): Boolean {
/**
* Returns a hash code based on the contents of this array as if it is [List].
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun <T> Array<out T>.contentHashCode(): Int {
return this.contentHashCode()
}
@@ -505,8 +515,9 @@ public actual fun <T> Array<out T>.contentHashCode(): Int {
/**
* Returns a hash code based on the contents of this array as if it is [List].
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun ByteArray.contentHashCode(): Int {
return this.contentHashCode()
}
@@ -514,8 +525,9 @@ public actual fun ByteArray.contentHashCode(): Int {
/**
* Returns a hash code based on the contents of this array as if it is [List].
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun ShortArray.contentHashCode(): Int {
return this.contentHashCode()
}
@@ -523,8 +535,9 @@ public actual fun ShortArray.contentHashCode(): Int {
/**
* Returns a hash code based on the contents of this array as if it is [List].
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun IntArray.contentHashCode(): Int {
return this.contentHashCode()
}
@@ -532,8 +545,9 @@ public actual fun IntArray.contentHashCode(): Int {
/**
* Returns a hash code based on the contents of this array as if it is [List].
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun LongArray.contentHashCode(): Int {
return this.contentHashCode()
}
@@ -541,8 +555,9 @@ public actual fun LongArray.contentHashCode(): Int {
/**
* Returns a hash code based on the contents of this array as if it is [List].
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun FloatArray.contentHashCode(): Int {
return this.contentHashCode()
}
@@ -550,8 +565,9 @@ public actual fun FloatArray.contentHashCode(): Int {
/**
* Returns a hash code based on the contents of this array as if it is [List].
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun DoubleArray.contentHashCode(): Int {
return this.contentHashCode()
}
@@ -559,8 +575,9 @@ public actual fun DoubleArray.contentHashCode(): Int {
/**
* Returns a hash code based on the contents of this array as if it is [List].
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun BooleanArray.contentHashCode(): Int {
return this.contentHashCode()
}
@@ -568,8 +585,9 @@ public actual fun BooleanArray.contentHashCode(): Int {
/**
* Returns a hash code based on the contents of this array as if it is [List].
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun CharArray.contentHashCode(): Int {
return this.contentHashCode()
}
@@ -651,8 +669,9 @@ public actual fun CharArray?.contentHashCode(): Int {
*
* @sample samples.collections.Arrays.ContentOperations.contentToString
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun <T> Array<out T>.contentToString(): String {
return this.contentToString()
}
@@ -662,8 +681,9 @@ public actual fun <T> Array<out T>.contentToString(): String {
*
* @sample samples.collections.Arrays.ContentOperations.contentToString
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun ByteArray.contentToString(): String {
return this.contentToString()
}
@@ -673,8 +693,9 @@ public actual fun ByteArray.contentToString(): String {
*
* @sample samples.collections.Arrays.ContentOperations.contentToString
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun ShortArray.contentToString(): String {
return this.contentToString()
}
@@ -684,8 +705,9 @@ public actual fun ShortArray.contentToString(): String {
*
* @sample samples.collections.Arrays.ContentOperations.contentToString
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun IntArray.contentToString(): String {
return this.contentToString()
}
@@ -695,8 +717,9 @@ public actual fun IntArray.contentToString(): String {
*
* @sample samples.collections.Arrays.ContentOperations.contentToString
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun LongArray.contentToString(): String {
return this.contentToString()
}
@@ -706,8 +729,9 @@ public actual fun LongArray.contentToString(): String {
*
* @sample samples.collections.Arrays.ContentOperations.contentToString
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun FloatArray.contentToString(): String {
return this.contentToString()
}
@@ -717,8 +741,9 @@ public actual fun FloatArray.contentToString(): String {
*
* @sample samples.collections.Arrays.ContentOperations.contentToString
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun DoubleArray.contentToString(): String {
return this.contentToString()
}
@@ -728,8 +753,9 @@ public actual fun DoubleArray.contentToString(): String {
*
* @sample samples.collections.Arrays.ContentOperations.contentToString
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun BooleanArray.contentToString(): String {
return this.contentToString()
}
@@ -739,8 +765,9 @@ public actual fun BooleanArray.contentToString(): String {
*
* @sample samples.collections.Arrays.ContentOperations.contentToString
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@SinceKotlin("1.1")
@kotlin.internal.LowPriorityInOverloadResolution
@DeprecatedSinceKotlin(hiddenSince = "1.4")
public actual fun CharArray.contentToString(): String {
return this.contentToString()
}