[Stdlib] Fix reports of MPP annotation checker

^KT-58551
This commit is contained in:
Roman Efremov
2023-06-30 12:58:46 +02:00
committed by Space Team
parent 12eb6d97bf
commit 8ce1417621
6 changed files with 9 additions and 1 deletions
@@ -11,10 +11,12 @@ package kotlin.jvm
@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")
@MustBeDocumented
public actual annotation class Volatile
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
@Retention(AnnotationRetention.SOURCE)
@Deprecated("Synchronizing methods on a class instance is not supported on platforms other than JVM. If you need to annotate a common method as JVM-synchronized, introduce your own optional-expectation annotation and actualize it with a typealias to kotlin.jvm.Synchronized.")
@DeprecatedSinceKotlin(warningSince = "1.8")
@MustBeDocumented
public actual annotation class Synchronized