From bcebddee24d13b991c2afa2443689dc651539bb0 Mon Sep 17 00:00:00 2001 From: vmishenev Date: Wed, 28 Jul 2021 14:51:01 +0300 Subject: Add boolean, nullable types of annotation parameter value --- .../kotlin/org/jetbrains/dokka/javadoc/pages/htmlPreprocessors.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/javadoc/src/main/kotlin/org/jetbrains/dokka') 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) } } -- cgit