Harden deprecation level for synchronized helper functions.
Make migration helper classes deprecated-hidden, although it doesn't affect anything.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package kotlin;
|
||||
|
||||
@java.lang.Deprecated
|
||||
@kotlin.Deprecated(message = "Use kotlin.collections.ArraysKt instead")
|
||||
@kotlin.Deprecated(message = "Use kotlin.collections.ArraysKt instead", level = DeprecationLevel.HIDDEN)
|
||||
public class ArraysKt extends kotlin.collections.ArraysKt {
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
package kotlin;
|
||||
|
||||
@java.lang.Deprecated
|
||||
@Deprecated(message = "Use kotlin.text.CharsKt instead")
|
||||
@Deprecated(message = "Use kotlin.text.CharsKt instead", level = DeprecationLevel.HIDDEN)
|
||||
public class CharsKt extends kotlin.text.CharsKt {
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package kotlin;
|
||||
|
||||
@java.lang.Deprecated
|
||||
@kotlin.Deprecated(message = "Use kotlin.collections.CollectionsKt instead")
|
||||
@kotlin.Deprecated(message = "Use kotlin.collections.CollectionsKt instead", level = DeprecationLevel.HIDDEN)
|
||||
public class CollectionsKt extends kotlin.collections.CollectionsKt {
|
||||
}
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
package kotlin;
|
||||
|
||||
@java.lang.Deprecated
|
||||
@Deprecated(message = "Use kotlin.collections.MapsKt instead")
|
||||
@Deprecated(message = "Use kotlin.collections.MapsKt instead", level = DeprecationLevel.HIDDEN)
|
||||
public class MapsKt extends kotlin.collections.MapsKt {
|
||||
}
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
package kotlin;
|
||||
|
||||
@java.lang.Deprecated
|
||||
@Deprecated(message = "Use kotlin.ranges.RangesKt instead")
|
||||
@Deprecated(message = "Use kotlin.ranges.RangesKt instead", level = DeprecationLevel.HIDDEN)
|
||||
public class RangesKt extends kotlin.ranges.RangesKt {
|
||||
}
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
package kotlin;
|
||||
|
||||
@java.lang.Deprecated
|
||||
@Deprecated(message = "Use kotlin.sequences.SequencesKt instead")
|
||||
@Deprecated(message = "Use kotlin.sequences.SequencesKt instead", level = DeprecationLevel.HIDDEN)
|
||||
public class SequencesKt extends kotlin.sequences.SequencesKt {
|
||||
}
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
package kotlin;
|
||||
|
||||
@java.lang.Deprecated
|
||||
@Deprecated(message = "Use kotlin.collections.SetsKt instead")
|
||||
@Deprecated(message = "Use kotlin.collections.SetsKt instead", level = DeprecationLevel.HIDDEN)
|
||||
public class SetsKt extends kotlin.collections.SetsKt {
|
||||
}
|
||||
|
||||
@@ -17,6 +17,6 @@
|
||||
package kotlin;
|
||||
|
||||
@java.lang.Deprecated
|
||||
@Deprecated(message = "Use kotlin.text.StringsKt instead")
|
||||
@Deprecated(message = "Use kotlin.text.StringsKt instead", level = DeprecationLevel.HIDDEN)
|
||||
public class StringsKt extends kotlin.text.StringsKt {
|
||||
}
|
||||
|
||||
@@ -20,10 +20,10 @@ import kotlin.jvm.internal.Intrinsic
|
||||
|
||||
/** @suppress */
|
||||
@Intrinsic("kotlin.jvm.internal.unsafe.monitorEnter")
|
||||
@Deprecated("This function supports the standard library infrastructure and is not intended to be used directly from user code.")
|
||||
@Deprecated("This function supports the standard library infrastructure and is not intended to be used directly from user code.", level = DeprecationLevel.ERROR)
|
||||
public fun monitorEnter(monitor: Any): Unit = throw UnsupportedOperationException("This function can only be used privately")
|
||||
|
||||
/** @suppress */
|
||||
@Intrinsic("kotlin.jvm.internal.unsafe.monitorExit")
|
||||
@Deprecated("This function supports the standard library infrastructure and is not intended to be used directly from user code.")
|
||||
@Deprecated("This function supports the standard library infrastructure and is not intended to be used directly from user code.", level = DeprecationLevel.ERROR)
|
||||
public fun monitorExit(monitor: Any): Unit = throw UnsupportedOperationException("This function can only be used privately")
|
||||
|
||||
@@ -8,7 +8,7 @@ import kotlin.jvm.internal.unsafe.*
|
||||
/**
|
||||
* Executes the given function [block] while holding the monitor of the given object [lock].
|
||||
*/
|
||||
@Suppress("DEPRECATION")
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
public inline fun <R> synchronized(lock: Any, block: () -> R): R {
|
||||
monitorEnter(lock)
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user