From ccfb4f085d5cbb7eda69465fbcb3716fac4464b3 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 15 Nov 2019 10:30:01 +0800 Subject: [PATCH] Make AnnotatedId deprecated --- .../net.mamoe.mirai/network/protocol/tim/packet/Annotations.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/Annotations.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/Annotations.kt index d1742112b..2532c9bb1 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/Annotations.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/Annotations.kt @@ -9,6 +9,7 @@ import kotlin.reflect.KClass /** * 包 ID. 除特殊外, [PacketFactory] 都需要这个注解来指定包 ID. */ +@Deprecated("Reflection is not supported in JS. Consider to remove") @MustBeDocumented @Retention(AnnotationRetention.RUNTIME) @Target(AnnotationTarget.CLASS)