Raise deprecation level for kotlin.Synchronized and Volatile, remove replacements

They are js-only but not supposed to be used in Kotlin/JS code, so their
usages should be just removed.

#KT-21703
This commit is contained in:
Ilya Gorbunov
2018-09-06 20:52:39 +03:00
parent 010b36be1f
commit 35f42c7d35
+2 -2
View File
@@ -8,10 +8,10 @@ package kotlin
import kotlin.contracts.*
@Deprecated("Use Synchronized annotation from kotlin.jvm package", ReplaceWith("kotlin.jvm.Synchronized"), level = DeprecationLevel.WARNING)
@Deprecated("Do not use Synchronized annotation in pure Kotlin/JS code", level = DeprecationLevel.ERROR)
public typealias Synchronized = kotlin.jvm.Synchronized
@Deprecated("Use Volatile annotation from kotlin.jvm package", ReplaceWith("kotlin.jvm.Volatile"), level = DeprecationLevel.WARNING)
@Deprecated("Do not use Volatile annotation in pure Kotlin/JS code", level = DeprecationLevel.ERROR)
public typealias Volatile = kotlin.jvm.Volatile
@kotlin.internal.InlineOnly