diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2020-10-15 09:40:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 09:40:09 +0200 |
commit | bf5e18fd1694882a318e204be6a31bc1757db72d (patch) | |
tree | eddc619638733a6b5822d6a95855842bf6bf1102 /plugins/javadoc/src/main/kotlin | |
parent | 7e2678e5e182afc10c3ca98107aae3c7590b909b (diff) | |
download | dokka-bf5e18fd1694882a318e204be6a31bc1757db72d.tar.gz dokka-bf5e18fd1694882a318e204be6a31bc1757db72d.tar.bz2 dokka-bf5e18fd1694882a318e204be6a31bc1757db72d.zip |
IsException should also be true when class inherits from Exception (#1558)
Diffstat (limited to 'plugins/javadoc/src/main/kotlin')
-rw-r--r-- | plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/pages/htmlPreprocessors.kt | 2 |
1 files changed, 1 insertions, 1 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 a7e10bd5..d6a15865 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 @@ -141,7 +141,7 @@ object DeprecatedPageCreator : PageTransformer { it.takeIf { it.isDeprecated() }?.putAs(DeprecatedPageSection.DeprecatedEnumConstants) } node.takeIf { it.isDeprecated() }?.putAs( - if ((node.documentable as? WithSupertypes)?.isException == true) DeprecatedPageSection.DeprecatedExceptions + if ((node as? WithJavadocExtra<out Documentable>)?.isException == true) DeprecatedPageSection.DeprecatedExceptions else when (node.kind) { "enum" -> DeprecatedPageSection.DeprecatedEnums "interface" -> DeprecatedPageSection.DeprecatedInterfaces |