[Stdlib] Fix reports of MPP annotation checker
^KT-58551
This commit is contained in:
committed by
Space Team
parent
12eb6d97bf
commit
8ce1417621
@@ -192,6 +192,7 @@ public annotation class PublishedApi
|
||||
* @property exceptionClasses the list of checked exception classes that may be thrown by the function.
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@Suppress("ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT")
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
public actual annotation class Throws(actual vararg val exceptionClasses: KClass<out Throwable>)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
@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")
|
||||
@kotlin.annotation.MustBeDocumented
|
||||
public final annotation class Synchronized : kotlin.Annotation {
|
||||
public constructor Synchronized()
|
||||
}
|
||||
@@ -10,6 +11,7 @@ public final annotation class Synchronized : kotlin.Annotation {
|
||||
@kotlin.annotation.Retention(value = AnnotationRetention.SOURCE)
|
||||
@kotlin.Deprecated(message = "This annotation has no effect in Kotlin/JS. Use kotlin.concurrent.Volatile annotation in multiplatform code instead.", replaceWith = kotlin.ReplaceWith(expression = "kotlin.concurrent.Volatile", imports = {"kotlin.concurrent.Volatile"}))
|
||||
@kotlin.DeprecatedSinceKotlin(warningSince = "1.9")
|
||||
@kotlin.annotation.MustBeDocumented
|
||||
public final annotation class Volatile : kotlin.Annotation {
|
||||
public constructor Volatile()
|
||||
}
|
||||
@@ -95,7 +95,7 @@ public expect annotation class JsExport() {
|
||||
*/
|
||||
@ExperimentalJsExport
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(CLASS, PROPERTY, FUNCTION)
|
||||
@Target(CLASS, PROPERTY, FUNCTION, CONSTRUCTOR)
|
||||
@SinceKotlin("1.8")
|
||||
@OptionalExpectation
|
||||
public annotation class Ignore()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -22,4 +22,5 @@ package kotlin
|
||||
* ```
|
||||
*/
|
||||
@SinceKotlin("1.4")
|
||||
@Suppress("ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT") // @Retention(BINARY) on expect needed for native target
|
||||
public actual typealias Throws = kotlin.jvm.Throws
|
||||
|
||||
@@ -13,6 +13,8 @@ package kotlin.js
|
||||
@ExperimentalJsExport
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(AnnotationTarget.FUNCTION)
|
||||
// All targets from expect can't be set because for K/Wasm so far you can export only functions
|
||||
@Suppress("ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT")
|
||||
public actual annotation class JsExport {
|
||||
@ExperimentalJsExport
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
|
||||
Reference in New Issue
Block a user