Increase deprecation level for previously deprecated API
- unsupported common exceptions - common 'synchronized' - jquery API - experimental kotlin.time API - js Math object - DefaultAsserter constructor-like fun
This commit is contained in:
@@ -93,7 +93,7 @@ public expect open class ArithmeticException : RuntimeException {
|
||||
constructor(message: String?)
|
||||
}
|
||||
|
||||
@Deprecated("This exception type is not supposed to be thrown or caught in common code and will be removed from kotlin-stdlib-common soon.")
|
||||
@Deprecated("This exception type is not supposed to be thrown or caught in common code and will be removed from kotlin-stdlib-common soon.", level = DeprecationLevel.ERROR)
|
||||
public expect open class NoWhenBranchMatchedException : RuntimeException {
|
||||
constructor()
|
||||
constructor(message: String?)
|
||||
@@ -101,7 +101,7 @@ public expect open class NoWhenBranchMatchedException : RuntimeException {
|
||||
constructor(cause: Throwable?)
|
||||
}
|
||||
|
||||
@Deprecated("This exception type is not supposed to be thrown or caught in common code and will be removed from kotlin-stdlib-common soon.")
|
||||
@Deprecated("This exception type is not supposed to be thrown or caught in common code and will be removed from kotlin-stdlib-common soon.", level = DeprecationLevel.ERROR)
|
||||
public expect class UninitializedPropertyAccessException : RuntimeException {
|
||||
constructor()
|
||||
constructor(message: String?)
|
||||
|
||||
@@ -60,11 +60,8 @@ public expect fun Float.Companion.fromBits(bits: Int): Float
|
||||
|
||||
// From concurrent.kt
|
||||
|
||||
// TODO: promote to error? Otherwise it gets to JVM part
|
||||
//@Deprecated("Use Volatile annotation from kotlin.jvm package", ReplaceWith("kotlin.jvm.Volatile"), level = DeprecationLevel.WARNING)
|
||||
//public typealias Volatile = kotlin.jvm.Volatile
|
||||
|
||||
@Deprecated("Synchronization on any object is not supported on every platform and will be removed from the common standard library soon.")
|
||||
@Deprecated("Synchronization on any object is not supported on every platform and will be removed from the common standard library soon.", level = DeprecationLevel.ERROR)
|
||||
@Suppress("NO_ACTUAL_FOR_EXPECT")
|
||||
public expect inline fun <R> synchronized(lock: Any, block: () -> R): R
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user