From eba9f0f0ad17f6eddbd43136e48349ec84e36546 Mon Sep 17 00:00:00 2001 From: Dmitry Petrov Date: Tue, 15 Sep 2015 19:06:41 +0300 Subject: [PATCH] Change JvmName retention to SOURCE --- libraries/stdlib/src/kotlin/jvm/JvmPlatformAnnotations.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/stdlib/src/kotlin/jvm/JvmPlatformAnnotations.kt b/libraries/stdlib/src/kotlin/jvm/JvmPlatformAnnotations.kt index 92878a6bdc7..b5e6ee6d013 100644 --- a/libraries/stdlib/src/kotlin/jvm/JvmPlatformAnnotations.kt +++ b/libraries/stdlib/src/kotlin/jvm/JvmPlatformAnnotations.kt @@ -48,15 +48,16 @@ public annotation class JvmStatic * @property name the name of the element. */ @Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.FILE) -@Retention(AnnotationRetention.RUNTIME) +@Retention(AnnotationRetention.SOURCE) @MustBeDocumented public annotation class JvmName(public val name: String) /** - * Instructs the Kotlin compiler to generate a multifile class with this file as one o + * Instructs the Kotlin compiler to generate a multifile class with top-level functions and properties declared in this file as one of its parts. + * Name of the corresponding multifile class is provided by the [JvmName] annotation. */ @Target(AnnotationTarget.FILE) -@Retention(AnnotationRetention.RUNTIME) +@Retention(AnnotationRetention.SOURCE) @MustBeDocumented public annotation class JvmMultifileClass