diff options
author | HÃ¥vard Kindem <havard.kindem@schibsted.com> | 2018-05-07 10:46:00 +0200 |
---|---|---|
committer | Simon Ogorodnik <simon.ogorodnik@gmail.com> | 2018-05-07 12:27:57 +0300 |
commit | 5eeab3e8c96b6e03435025f9adae38c7e9e3edab (patch) | |
tree | c502a7fb6b55f00eebc2c2d93d44c981d25edc40 | |
parent | d6ba6677cff2de399b8231127325af2cea210b50 (diff) | |
download | dokka-5eeab3e8c96b6e03435025f9adae38c7e9e3edab.tar.gz dokka-5eeab3e8c96b6e03435025f9adae38c7e9e3edab.tar.bz2 dokka-5eeab3e8c96b6e03435025f9adae38c7e9e3edab.zip |
Fix ClassCastException when generating JavaDoc
Fixes #287
-rw-r--r-- | core/src/main/kotlin/Kotlin/DocumentationBuilder.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt index 916f89c9..17e4bc1a 100644 --- a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt +++ b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt @@ -887,7 +887,7 @@ fun DeclarationDescriptor.isDocumentationSuppressed(options: DocumentationOption } fun DeclarationDescriptor.sourcePsi() = - ((original as DeclarationDescriptorWithSource).source as? PsiSourceElement)?.psi + ((original as? DeclarationDescriptorWithSource)?.source as? PsiSourceElement)?.psi fun DeclarationDescriptor.isDeprecated(): Boolean = annotations.any { DescriptorUtils.getFqName(it.type.constructor.declarationDescriptor!!).asString() == "kotlin.Deprecated" |