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
+54 -27
View File
@@ -278,8 +278,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)
}
@@ -291,8 +292,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)
}
@@ -304,8 +306,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)
}
@@ -317,8 +320,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)
}
@@ -330,8 +334,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)
}
@@ -343,8 +348,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)
}
@@ -356,8 +362,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)
}
@@ -369,8 +376,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)
}
@@ -382,8 +390,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)
}
@@ -508,8 +517,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()
}
@@ -517,8 +527,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()
}
@@ -526,8 +537,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()
}
@@ -535,8 +547,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()
}
@@ -544,8 +557,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()
}
@@ -553,8 +567,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()
}
@@ -562,8 +577,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()
}
@@ -571,8 +587,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()
}
@@ -580,8 +597,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()
}
@@ -672,8 +690,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()
}
@@ -683,8 +702,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()
}
@@ -694,8 +714,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()
}
@@ -705,8 +726,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()
}
@@ -716,8 +738,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()
}
@@ -727,8 +750,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()
}
@@ -738,8 +762,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()
}
@@ -749,8 +774,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()
}
@@ -760,8 +786,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()
}
@@ -6,6 +6,14 @@
package kotlin.text
/**
* Returns `true` if the content of this string is equal to the word "true", ignoring case, and `false` otherwise.
*/
@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.")
@DeprecatedSinceKotlin(hiddenSince = "1.4")
@kotlin.internal.InlineOnly
public actual inline fun String.toBoolean(): Boolean = this.toBoolean()
/**
* Returns `true` if this string is not `null` and its content is equal to the word "true", ignoring case, and `false` otherwise.
*/