Deprecate JVM platform annotations in favor of capitilized themselves
This commit is contained in:
@@ -23,7 +23,7 @@ package kotlin.jvm
|
||||
* takes N-1 parameters (all but the last one that takes a default value), the second takes N-2 parameters, and so on.
|
||||
*/
|
||||
target(AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR)
|
||||
public annotation(retention = AnnotationRetention.BINARY, mustBeDocumented = true) class jvmOverloads
|
||||
public annotation(retention = AnnotationRetention.BINARY, mustBeDocumented = true) class JvmOverloads
|
||||
|
||||
|
||||
/**
|
||||
@@ -32,7 +32,7 @@ public annotation(retention = AnnotationRetention.BINARY, mustBeDocumented = tru
|
||||
* for more information.
|
||||
*/
|
||||
target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
||||
public annotation(retention = AnnotationRetention.RUNTIME, mustBeDocumented = true) class jvmStatic
|
||||
public annotation(retention = AnnotationRetention.RUNTIME, mustBeDocumented = true) class JvmStatic
|
||||
|
||||
/**
|
||||
* Specifies the name for the Java class or method
|
||||
@@ -42,7 +42,7 @@ public annotation(retention = AnnotationRetention.RUNTIME, mustBeDocumented = tr
|
||||
* @property name the name of the element.
|
||||
*/
|
||||
target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER)
|
||||
public annotation(retention = AnnotationRetention.RUNTIME, mustBeDocumented = true) class jvmName(public val name: String)
|
||||
public annotation(retention = AnnotationRetention.RUNTIME, mustBeDocumented = true) class JvmName(public val name: String)
|
||||
|
||||
/**
|
||||
* Instructs the Kotlin compiler to generate a public backing field for this property.
|
||||
|
||||
@@ -19,9 +19,9 @@ package kotlin.platform
|
||||
import kotlin.annotation.AnnotationTarget.*
|
||||
|
||||
target(FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER)
|
||||
deprecated("Use kotlin.jvm.jvmName instead", ReplaceWith("kotlin.jvm.jvmName"))
|
||||
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, PROPERTY_GETTER, PROPERTY_SETTER)
|
||||
deprecated("Use kotlin.jvm.jvmStatic instead", ReplaceWith("kotlin.jvm.jvmStatic"))
|
||||
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