Deprecate Synchronized annotation in common and JS #KT-55344

This commit is contained in:
Ilya Gorbunov
2022-12-21 23:04:07 +01:00
committed by Space Team
parent 719cdce609
commit b6e6ca7c96
4 changed files with 8 additions and 0 deletions
@@ -160,6 +160,8 @@ public expect annotation class Strictfp()
@Target(FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER)
@MustBeDocumented
@OptionalExpectation
@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")
public expect annotation class Synchronized()