aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2019-08-05 19:02:00 +0300
committerKamil Doległo <kamilok1965@interia.pl>2019-08-05 19:02:22 +0300
commit04eef619344ac13e13bec77c0ad5a2b30b314a20 (patch)
treed58e59ec07aded8b2fcb3ec1c8dd24647ee7b95c /core
parente9c62838d5bbf3e2ac62c2f3046b6147ce1c0743 (diff)
downloaddokka-04eef619344ac13e13bec77c0ad5a2b30b314a20.tar.gz
dokka-04eef619344ac13e13bec77c0ad5a2b30b314a20.tar.bz2
dokka-04eef619344ac13e13bec77c0ad5a2b30b314a20.zip
Fix nested annotation and perPackageOptions bugs
Diffstat (limited to 'core')
-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 2eaf4af2..3b368329 100644
--- a/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt
+++ b/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt
@@ -316,7 +316,7 @@ class JavaPsiDocumentationBuilder : JavaDocumentationBuilder {
val existing = refGraph.lookup(getSignature(psiClass)!!)
if (existing != null) return existing
val new = psiClass.build()
- val packageNode = findOrCreatePackageNode(null, (psiClass.parent as PsiJavaFile).packageName, emptyMap(), refGraph)
+ val packageNode = findOrCreatePackageNode(null, (psiClass.containingFile as PsiJavaFile).packageName, emptyMap(), refGraph)
packageNode.append(new, RefKind.Member)
return new
}