From 07b9cf32b1a3ffdfcc7fda5bfcdf9eebd4c718b0 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 29 Nov 2019 21:36:34 +0800 Subject: [PATCH] Change to @JvmStatic --- .../kotlin/net.mamoe.mirai/utils/BotConfiguration.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/BotConfiguration.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/BotConfiguration.kt index d59d05105..4c6513175 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/BotConfiguration.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/BotConfiguration.kt @@ -7,7 +7,7 @@ import net.mamoe.mirai.Bot import net.mamoe.mirai.network.protocol.tim.packet.login.TouchPacket.TouchResponse import kotlin.coroutines.CoroutineContext import kotlin.coroutines.coroutineContext -import kotlin.jvm.JvmField +import kotlin.jvm.JvmStatic /** * 验证码处理器. 需挂起(阻塞)直到处理完成验证码. @@ -69,7 +69,7 @@ class BotConfiguration : CoroutineContext.Element { /** * 默认的配置实例 */ - @JvmField + @JvmStatic val Default = BotConfiguration() }