mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 16:40:43 +08:00
Use mirai TestOnly
annotation in ServerListImpl.<init>
This commit is contained in:
parent
8d8aca3f1c
commit
40bbab4b5e
@ -14,6 +14,6 @@ import kotlin.annotation.AnnotationTarget.*
|
|||||||
|
|
||||||
|
|
||||||
@RequiresOptIn("This can only be used in tests.", level = ERROR)
|
@RequiresOptIn("This can only be used in tests.", level = ERROR)
|
||||||
@Target(CLASS, FUNCTION, PROPERTY)
|
@Target(CLASS, FUNCTION, PROPERTY, CLASS, CONSTRUCTOR, FUNCTION)
|
||||||
@Retention(AnnotationRetention.BINARY)
|
@Retention(AnnotationRetention.SOURCE)
|
||||||
public annotation class TestOnly
|
public annotation class TestOnly
|
@ -13,8 +13,8 @@ import kotlinx.serialization.Serializable
|
|||||||
import net.mamoe.mirai.internal.network.component.ComponentKey
|
import net.mamoe.mirai.internal.network.component.ComponentKey
|
||||||
import net.mamoe.mirai.internal.network.components.ServerList.Companion.DEFAULT_SERVER_LIST
|
import net.mamoe.mirai.internal.network.components.ServerList.Companion.DEFAULT_SERVER_LIST
|
||||||
import net.mamoe.mirai.utils.MiraiLogger
|
import net.mamoe.mirai.utils.MiraiLogger
|
||||||
|
import net.mamoe.mirai.utils.TestOnly
|
||||||
import net.mamoe.mirai.utils.info
|
import net.mamoe.mirai.utils.info
|
||||||
import org.jetbrains.annotations.TestOnly
|
|
||||||
import java.net.InetSocketAddress
|
import java.net.InetSocketAddress
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user