Make JvmPackageName a common internal annotation

This commit is contained in:
Ilya Gorbunov
2019-03-01 02:02:49 +03:00
parent f07fed9afa
commit db4c4132f6
3 changed files with 15 additions and 2 deletions
@@ -139,4 +139,12 @@ public expect annotation class Strictfp()
@Target(FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER)
@MustBeDocumented
@OptionalExpectation
public expect annotation class Synchronized()
public expect annotation class Synchronized()
@Target(AnnotationTarget.FILE)
@Retention(AnnotationRetention.SOURCE)
@MustBeDocumented
@SinceKotlin("1.2")
@OptionalExpectation
internal expect annotation class JvmPackageName(val name: String)
@@ -21,6 +21,11 @@ internal annotation class JvmName(public val name: String)
@MustBeDocumented
internal annotation class JvmMultifileClass
@Target(AnnotationTarget.FILE)
@Retention(AnnotationRetention.SOURCE)
@MustBeDocumented
internal annotation class JvmPackageName(val name: String)
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.SOURCE)
@MustBeDocumented
@@ -61,7 +61,7 @@ public actual annotation class JvmMultifileClass
@Retention(AnnotationRetention.SOURCE)
@MustBeDocumented
@SinceKotlin("1.2")
internal annotation class JvmPackageName(val name: String)
internal actual annotation class JvmPackageName(actual val name: String)
/**
* Sets `ACC_SYNTHETIC` flag on the annotated target in the Java bytecode.