Deprecate Synchronized annotation in common and JS #KT-55344
This commit is contained in:
committed by
Space Team
parent
719cdce609
commit
b6e6ca7c96
@@ -1,5 +1,7 @@
|
|||||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER})
|
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER})
|
||||||
@kotlin.annotation.Retention(value = AnnotationRetention.SOURCE)
|
@kotlin.annotation.Retention(value = AnnotationRetention.SOURCE)
|
||||||
|
@kotlin.Deprecated(message = "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.")
|
||||||
|
@kotlin.DeprecatedSinceKotlin(warningSince = "1.8")
|
||||||
public final annotation class Synchronized : kotlin.Annotation {
|
public final annotation class Synchronized : kotlin.Annotation {
|
||||||
public constructor Synchronized()
|
public constructor Synchronized()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER})
|
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER})
|
||||||
@kotlin.annotation.Retention(value = AnnotationRetention.SOURCE)
|
@kotlin.annotation.Retention(value = AnnotationRetention.SOURCE)
|
||||||
|
@kotlin.Deprecated(message = "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.")
|
||||||
|
@kotlin.DeprecatedSinceKotlin(warningSince = "1.8")
|
||||||
public final annotation class Synchronized : kotlin.Annotation {
|
public final annotation class Synchronized : kotlin.Annotation {
|
||||||
public constructor Synchronized()
|
public constructor Synchronized()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -160,6 +160,8 @@ public expect annotation class Strictfp()
|
|||||||
@Target(FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER)
|
@Target(FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER)
|
||||||
@MustBeDocumented
|
@MustBeDocumented
|
||||||
@OptionalExpectation
|
@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()
|
public expect annotation class Synchronized()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,4 +15,6 @@ public actual annotation class Volatile
|
|||||||
|
|
||||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
||||||
@Retention(AnnotationRetention.SOURCE)
|
@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")
|
||||||
public actual annotation class Synchronized
|
public actual annotation class Synchronized
|
||||||
|
|||||||
Reference in New Issue
Block a user