diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-05-04 21:35:36 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-07-14 23:57:12 +0300 |
commit | 3c6be4a1dbbcfec5e5438452f54857cce86d0d17 (patch) | |
tree | ecaf95a4f12ce10472d611ffb9f72d26cd264d1d | |
parent | b00dabc4c53a71f745c29a135541b02f8dd7d266 (diff) | |
download | dokka-3c6be4a1dbbcfec5e5438452f54857cce86d0d17.tar.gz dokka-3c6be4a1dbbcfec5e5438452f54857cce86d0d17.tar.bz2 dokka-3c6be4a1dbbcfec5e5438452f54857cce86d0d17.zip |
Fix resolution of inbound links to constructors in Javadoc
-rw-r--r-- | core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt b/core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt index c766b869..a8129793 100644 --- a/core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt +++ b/core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt @@ -216,7 +216,7 @@ interface InboundExternalLinkResolutionService { val containingClass = symbol.containingDeclaration as? JavaClassDescriptor ?: return null val containingClassLink = getPath(containingClass) if (containingClassLink != null) { - if (symbol is JavaMethodDescriptor) { + if (symbol is JavaMethodDescriptor || symbol is JavaClassConstructorDescriptor) { val psi = symbol.sourcePsi() as? PsiMethod if (psi != null) { val params = psi.parameterList.parameters.joinToString { it.type.canonicalText } |