KT-55610 Deprecate k.j.Volatile annotation in Common and JS

Use k.c.Volatile in common AbstractMap instead
This commit is contained in:
Ilya Gorbunov
2023-04-05 14:35:06 +02:00
committed by Space Team
parent b8da3e69ce
commit 912b65060e
5 changed files with 10 additions and 4 deletions
@@ -7,10 +7,10 @@ package kotlin.jvm
// these are used in common generated code in stdlib
// TODO: find how to deprecate these ones
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.SOURCE)
@Deprecated("This annotation has no effect in Kotlin/JS. Use kotlin.concurrent.Volatile annotation in multiplatform code instead.", ReplaceWith("kotlin.concurrent.Volatile", "kotlin.concurrent.Volatile"))
@DeprecatedSinceKotlin(warningSince = "1.9")
public actual annotation class Volatile
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)