aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka
diff options
context:
space:
mode:
authorvmishenev <vad-mishenev@yandex.ru>2021-07-28 14:51:01 +0300
committervmishenev <vad-mishenev@yandex.ru>2021-07-30 01:33:35 +0300
commitbcebddee24d13b991c2afa2443689dc651539bb0 (patch)
tree3d96698d82c6f1446a43d1dabb12579e993bb56d /plugins/javadoc/src/main/kotlin/org/jetbrains/dokka
parent85cec2dd7ae435d84bad0721c6fd79e9c644c275 (diff)
downloaddokka-bcebddee24d13b991c2afa2443689dc651539bb0.tar.gz
dokka-bcebddee24d13b991c2afa2443689dc651539bb0.tar.bz2
dokka-bcebddee24d13b991c2afa2443689dc651539bb0.zip
Add boolean, nullable types of annotation parameter value
Diffstat (limited to 'plugins/javadoc/src/main/kotlin/org/jetbrains/dokka')
-rw-r--r--plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/htmlPreprocessors.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/htmlPreprocessors.kt b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/htmlPreprocessors.kt
index d6a15865..6bc0d9fd 100644
--- a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/htmlPreprocessors.kt
+++ b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/htmlPreprocessors.kt
@@ -5,7 +5,7 @@ import org.jetbrains.dokka.base.transformers.documentables.deprecatedAnnotation
import org.jetbrains.dokka.base.transformers.documentables.isDeprecated
import org.jetbrains.dokka.base.transformers.documentables.isException
import org.jetbrains.dokka.model.Documentable
-import org.jetbrains.dokka.model.StringValue
+import org.jetbrains.dokka.model.BooleanValue
import org.jetbrains.dokka.model.WithSupertypes
import org.jetbrains.dokka.pages.*
import org.jetbrains.dokka.transformers.pages.PageTransformer
@@ -113,7 +113,7 @@ object DeprecatedPageCreator : PageTransformer {
(this as? WithBrief)?.brief.orEmpty()
)
getOrPut(deprecatedPageSection) { mutableSetOf() }.add(deprecatedNode)
- if (deprecatedAnnotation?.params?.get("forRemoval") == StringValue("true")) {
+ if (deprecatedAnnotation?.params?.get("forRemoval") == BooleanValue(true)) {
getOrPut(DeprecatedPageSection.DeprecatedForRemoval) { mutableSetOf() }.add(deprecatedNode)
}
}