aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorKrystian Ujma <krystianujma@gmail.com>2019-03-11 17:12:44 +0100
committerSimon Ogorodnik <simon.ogorodnik@gmail.com>2019-03-11 19:12:44 +0300
commit52b303d4251d54ddf9f09330f902621689a50f5d (patch)
tree7bf4c515ed7d215279f340c7f01013105bf2f174 /core/src
parent61b126692bb2ede06911ae1c493e8417f0bbe49d (diff)
downloaddokka-52b303d4251d54ddf9f09330f902621689a50f5d.tar.gz
dokka-52b303d4251d54ddf9f09330f902621689a50f5d.tar.bz2
dokka-52b303d4251d54ddf9f09330f902621689a50f5d.zip
Fix not null annotation java-as-html bug (#442)
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt b/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt
index 1ef601d3..e26fa13e 100644
--- a/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt
+++ b/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt
@@ -311,7 +311,7 @@ class JavaPsiDocumentationBuilder : JavaDocumentationBuilder {
}
fun PsiAnnotation.build(): DocumentationNode {
- val node = DocumentationNode(nameReferenceElement?.text ?: "<?>", Content.Empty, NodeKind.Annotation)
+ val node = DocumentationNode(qualifiedName?.substringAfterLast(".") ?: "<?>", Content.Empty, NodeKind.Annotation)
parameterList.attributes.forEach {
val parameter = DocumentationNode(it.name ?: "value", Content.Empty, NodeKind.Parameter)
val value = it.value