From 5cc6338fb9d32a7d013a920d83a3dd632f4c33d8 Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Thu, 23 Mar 2023 14:58:57 +0200 Subject: [PATCH] [K/N] Deprecate Retain and RetainForTarget annotations As a part of efforts to stabilize Native stdlib #KT-55765. --- kotlin-native/Interop/JsRuntime/src/main/kotlin/jsinterop.kt | 2 ++ .../runtime/src/main/kotlin/kotlin/native/Annotations.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/kotlin-native/Interop/JsRuntime/src/main/kotlin/jsinterop.kt b/kotlin-native/Interop/JsRuntime/src/main/kotlin/jsinterop.kt index a9a6ab77ec7..9ec24a77b3f 100644 --- a/kotlin-native/Interop/JsRuntime/src/main/kotlin/jsinterop.kt +++ b/kotlin-native/Interop/JsRuntime/src/main/kotlin/jsinterop.kt @@ -14,6 +14,8 @@ * limitations under the License. */ +@file:Suppress("DEPRECATION") // RetainForTarget + package kotlinx.wasm.jsinterop import kotlin.native.* 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 19731669027..16701403862 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/native/Annotations.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/native/Annotations.kt @@ -40,6 +40,7 @@ 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 /** @@ -47,6 +48,7 @@ public annotation class Retain */ @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)