Fix targets on stdlib annotations
This commit is contained in:
@@ -22,14 +22,14 @@ import kotlin.annotation.AnnotationTarget.*
|
||||
* Marks the JVM backing field of the annotated property as `volatile`, meaning that writes to this field
|
||||
* are immediately made visible to other threads.
|
||||
*/
|
||||
target(PROPERTY, FIELD)
|
||||
target(FIELD)
|
||||
public annotation(retention = AnnotationRetention.SOURCE, mustBeDocumented = true) class volatile
|
||||
|
||||
/**
|
||||
* Marks the JVM backing field of the annotated property as `transient`, meaning that it is not
|
||||
* part of the default serialized form of the object.
|
||||
*/
|
||||
target(PROPERTY, FIELD)
|
||||
target(FIELD)
|
||||
public annotation(retention = AnnotationRetention.SOURCE, mustBeDocumented = true) class transient
|
||||
|
||||
/**
|
||||
@@ -37,7 +37,7 @@ public annotation(retention = AnnotationRetention.SOURCE, mustBeDocumented = tru
|
||||
* of floating point operations performed inside the method needs to be restricted in order to
|
||||
* achieve better portability.
|
||||
*/
|
||||
target(FUNCTION, CONSTRUCTOR, PROPERTY, PROPERTY_GETTER, PROPERTY_SETTER, CLASSIFIER)
|
||||
target(FUNCTION, CONSTRUCTOR, PROPERTY_GETTER, PROPERTY_SETTER, CLASSIFIER)
|
||||
public annotation(retention = AnnotationRetention.SOURCE, mustBeDocumented = true) class strictfp
|
||||
|
||||
/**
|
||||
|
||||
@@ -47,5 +47,5 @@ public annotation(retention = AnnotationRetention.RUNTIME, mustBeDocumented = tr
|
||||
/**
|
||||
* Instructs the Kotlin compiler to generate a public backing field for this property.
|
||||
*/
|
||||
target(AnnotationTarget.PROPERTY)
|
||||
target(AnnotationTarget.FIELD)
|
||||
public annotation(retention = AnnotationRetention.SOURCE, mustBeDocumented = true) class publicField
|
||||
@@ -22,6 +22,6 @@ target(FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER)
|
||||
deprecated("Use kotlin.jvm.jvmName instead", ReplaceWith("kotlin.jvm.jvmName"))
|
||||
public annotation(retention = AnnotationRetention.RUNTIME, mustBeDocumented = true) class platformName(public val name: String)
|
||||
|
||||
target(FUNCTION, PROPERTY, FIELD, PROPERTY_GETTER, PROPERTY_SETTER)
|
||||
target(FUNCTION, FIELD, PROPERTY, PROPERTY_GETTER, PROPERTY_SETTER)
|
||||
deprecated("Use kotlin.jvm.jvmStatic instead", ReplaceWith("kotlin.jvm.jvmStatic"))
|
||||
public annotation(retention = AnnotationRetention.RUNTIME, mustBeDocumented = true) class platformStatic
|
||||
|
||||
Reference in New Issue
Block a user