From 28c77bfb0123826161597fe68ce646a56df8d5c4 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Wed, 10 Jan 2018 17:42:49 +0100 Subject: [PATCH] Fix kotlin.annotation.Target's kdoc The original sentence was incorrect because it did not exclude type aliases --- core/builtins/src/kotlin/annotation/Annotations.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/builtins/src/kotlin/annotation/Annotations.kt b/core/builtins/src/kotlin/annotation/Annotations.kt index d6857da1fb7..119dbfa55d6 100644 --- a/core/builtins/src/kotlin/annotation/Annotations.kt +++ b/core/builtins/src/kotlin/annotation/Annotations.kt @@ -16,6 +16,8 @@ package kotlin.annotation +import kotlin.annotation.AnnotationTarget.* + /** * Contains the list of code elements which are the possible annotation targets */ @@ -70,8 +72,8 @@ public enum class AnnotationRetention { /** * This meta-annotation indicates the kinds of code elements which are possible targets of an annotation. * - * If the target meta-annotation is not present on an annotation declaration, the annotation - * is applicable to any code element, except type parameters, type usages, expressions, and files. + * If the target meta-annotation is not present on an annotation declaration, the annotation is applicable to the following elements: + * [CLASS], [PROPERTY], [FIELD], [LOCAL_VARIABLE], [VALUE_PARAMETER], [CONSTRUCTOR], [FUNCTION], [PROPERTY_GETTER], [PROPERTY_SETTER]. * * @property allowedTargets list of allowed annotation targets */