From 5c16e685b36308e3e353eabbf747e4fbea96d6a5 Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 25 Oct 2020 13:29:06 +0800 Subject: [PATCH] Mark ValueDescription with SerialInfo --- .../kotlin/net/mamoe/mirai/console/data/ValueDescription.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/data/ValueDescription.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/data/ValueDescription.kt index f014df959..907944766 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/data/ValueDescription.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/data/ValueDescription.kt @@ -9,6 +9,8 @@ package net.mamoe.mirai.console.data +import kotlinx.serialization.SerialInfo + /** * 序列化之后的注释. * @@ -30,6 +32,7 @@ package net.mamoe.mirai.console.data * a: b * ``` */ +@SerialInfo @Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS) @Retention(AnnotationRetention.RUNTIME) public annotation class ValueDescription(val value: String) \ No newline at end of file