Add @MustBeDocumented to MiraiInternalAPI and MiraiExperimentalAPI

This commit is contained in:
Him188 2020-06-14 18:36:32 +08:00
parent 4cb870cb85
commit 4c79d4cd18

View File

@ -23,6 +23,7 @@ import kotlin.annotation.AnnotationTarget.*
CLASS, TYPEALIAS, FUNCTION, PROPERTY, FIELD, CONSTRUCTOR, CLASS, TYPEALIAS, FUNCTION, PROPERTY, FIELD, CONSTRUCTOR,
CLASS, FUNCTION, PROPERTY CLASS, FUNCTION, PROPERTY
) )
@MustBeDocumented
annotation class MiraiInternalAPI( annotation class MiraiInternalAPI(
val message: String = "" val message: String = ""
) )
@ -36,6 +37,7 @@ annotation class MiraiInternalAPI(
@Retention(AnnotationRetention.SOURCE) @Retention(AnnotationRetention.SOURCE)
@RequiresOptIn(level = RequiresOptIn.Level.WARNING) @RequiresOptIn(level = RequiresOptIn.Level.WARNING)
@Target(CLASS, TYPEALIAS, FUNCTION, PROPERTY, FIELD, CONSTRUCTOR) @Target(CLASS, TYPEALIAS, FUNCTION, PROPERTY, FIELD, CONSTRUCTOR)
@MustBeDocumented
annotation class MiraiExperimentalAPI( annotation class MiraiExperimentalAPI(
val message: String = "" val message: String = ""
) )