aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt
diff options
context:
space:
mode:
authorVladimir Kryachko <vkryachko@google.com>2020-01-07 16:29:42 -0500
committerVladimir Kryachko <vkryachko@google.com>2020-01-07 16:29:42 -0500
commit13c6a6032bbdb620a6ff51e855ef2e0850246943 (patch)
tree5a95c83ce3e7ed7fbefda8291be50dcb855bd0eb /core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt
parent6170736b81021c1b69f4e9f633b41d3cb4eab2dd (diff)
downloaddokka-13c6a6032bbdb620a6ff51e855ef2e0850246943.tar.gz
Render correct javadoc-style URLs to Kotlin classes.
Diffstat (limited to 'core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt')
-rw-r--r--core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt2
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 a81297939..4e394c466 100644
--- a/core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt
+++ b/core/src/main/kotlin/Kotlin/ExternalDocumentationLinkResolver.kt
@@ -210,7 +210,7 @@ interface InboundExternalLinkResolutionService {
override fun getPath(symbol: DeclarationDescriptor): String? {
if (symbol is EnumEntrySyntheticClassDescriptor) {
return getPath(symbol.containingDeclaration)?.let { it + "#" + symbol.name.asString() }
- } else if (symbol is JavaClassDescriptor) {
+ } else if (symbol is ClassDescriptor) {
return DescriptorUtils.getFqName(symbol).asString().replace(".", "/") + ".html"
} else if (symbol is JavaCallableMemberDescriptor) {
val containingClass = symbol.containingDeclaration as? JavaClassDescriptor ?: return null