From aae8a687a4e117cea31046ad9fc7af3984020895 Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Fri, 16 Jun 2023 17:53:01 +0300 Subject: [PATCH] [K/N] Internalize Retain and RetainForTarget annotations #KT-57710 As a part of efforts to stabilize Native stdlib. --- .../runtime/src/main/kotlin/kotlin/native/Annotations.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/native/Annotations.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/native/Annotations.kt index 685ac881477..d9df80fefb0 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/native/Annotations.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/native/Annotations.kt @@ -40,16 +40,14 @@ public annotation class SymbolName(val name: String) */ @Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS) @Retention(AnnotationRetention.BINARY) -@Deprecated("This annotation will be removed in a future release") -public annotation class Retain +internal annotation class Retain /** * Preserve the function entry point during global optimizations, only for the given target. */ @Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS) @Retention(AnnotationRetention.BINARY) -@Deprecated("This annotation will be removed in a future release") -public annotation class RetainForTarget(val target: String) +internal annotation class RetainForTarget(val target: String) /** @suppress */