From dbc0197a36562316c6e8b409268934b5c293577d Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Mon, 12 Oct 2015 14:47:52 +0300 Subject: [PATCH] @HiddenDeclaration deprecated --- compiler/testData/builtin-classes.txt | 2 +- core/builtins/src/kotlin/Annotations.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/testData/builtin-classes.txt b/compiler/testData/builtin-classes.txt index 10f1c398515..b3879364b3c 100644 --- a/compiler/testData/builtin-classes.txt +++ b/compiler/testData/builtin-classes.txt @@ -613,7 +613,7 @@ public interface FloatingPointConstants { public interface Function { } -@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.CONSTRUCTOR}) @kotlin.annotation.Retention(value = AnnotationRetention.BINARY) @kotlin.annotation.MustBeDocumented() @kotlin.annotation.annotation() public final class HiddenDeclaration : kotlin.Annotation { +@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.CONSTRUCTOR}) @kotlin.annotation.Retention(value = AnnotationRetention.BINARY) @kotlin.annotation.MustBeDocumented() @kotlin.Deprecated(message = "Use @Deprecated("...", level = DeprecationLevel.HIDDEN) instead", replaceWith = kotlin.ReplaceWith(expression = "@Deprecated(, level = DeprecationLevel.HIDDEN)", imports = {})) @kotlin.annotation.annotation() public final class HiddenDeclaration : kotlin.Annotation { /*primary*/ public constructor HiddenDeclaration() } diff --git a/core/builtins/src/kotlin/Annotations.kt b/core/builtins/src/kotlin/Annotations.kt index 941d69b402d..cbea6951b52 100644 --- a/core/builtins/src/kotlin/Annotations.kt +++ b/core/builtins/src/kotlin/Annotations.kt @@ -108,6 +108,7 @@ private annotation class tailrec @Target(FUNCTION, PROPERTY, CONSTRUCTOR) @Retention(BINARY) @MustBeDocumented +@Deprecated("Use @Deprecated(\"...\", level = DeprecationLevel.HIDDEN) instead", replaceWith = ReplaceWith("@Deprecated(, level = DeprecationLevel.HIDDEN)")) public annotation class HiddenDeclaration /**