From afb74ec652aad3277e2f02fde0410973822e2ea5 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 14 Feb 2020 19:21:43 +0800 Subject: [PATCH] Annotate `subscribeInternal` with `@MiraiInternalAPI` --- .../net.mamoe.mirai/event/internal/InternalEventListeners.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/internal/InternalEventListeners.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/internal/InternalEventListeners.kt index 2a9f8f3b7..14e69a1e5 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/internal/InternalEventListeners.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/internal/InternalEventListeners.kt @@ -23,8 +23,8 @@ import kotlin.reflect.KClass val EventLogger: MiraiLoggerWithSwitch = DefaultLogger("Event").withSwitch(false) -@PublishedApi -internal fun , E : Event> KClass.subscribeInternal(listener: L): L { +@MiraiInternalAPI +fun , E : Event> KClass.subscribeInternal(listener: L): L { this.listeners().addLast(listener) return listener }