From 39332423401fded7a2782b37dea064385fef38a7 Mon Sep 17 00:00:00 2001 From: Leonid Startsev Date: Wed, 14 Jun 2023 12:25:35 +0200 Subject: [PATCH] Deprecate KmModule.annotations because it is unused and always empty. It used to store state of `-Xexperimental` Kotlin compilation flag, but this feature was removed long ago. #KT-59366 Fixed --- .../jvm/src/kotlinx/metadata/jvm/KotlinModuleMetadata.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/kotlinx-metadata/jvm/src/kotlinx/metadata/jvm/KotlinModuleMetadata.kt b/libraries/kotlinx-metadata/jvm/src/kotlinx/metadata/jvm/KotlinModuleMetadata.kt index 0454fadac70..f1dfd2d50f8 100644 --- a/libraries/kotlinx-metadata/jvm/src/kotlinx/metadata/jvm/KotlinModuleMetadata.kt +++ b/libraries/kotlinx-metadata/jvm/src/kotlinx/metadata/jvm/KotlinModuleMetadata.kt @@ -249,7 +249,10 @@ class KmModule : KmModuleVisitor() { /** * Annotations on the module. + * + * Currently, Kotlin does not provide functionality to specify annotations on modules. */ + @Deprecated("This list is always empty and will be removed", level = DeprecationLevel.WARNING) val annotations: MutableList = ArrayList(0) /**