aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc/src/main/kotlin
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-08-19 12:57:38 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-08-20 15:36:07 +0200
commit45bec5b68c2da35860877c6298bff04a4cb3d1d6 (patch)
treed99b27e6c6100ef93c2989caac66b55ef3ba3e21 /plugins/javadoc/src/main/kotlin
parente4fc2c274fd982b2742eac46581b504b56b2b48f (diff)
downloaddokka-45bec5b68c2da35860877c6298bff04a4cb3d1d6.tar.gz
dokka-45bec5b68c2da35860877c6298bff04a4cb3d1d6.tar.bz2
dokka-45bec5b68c2da35860877c6298bff04a4cb3d1d6.zip
Fix LinkProvider to link properly all nested generic parameters
Diffstat (limited to 'plugins/javadoc/src/main/kotlin')
-rw-r--r--plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/signatures/JavadocSignatureProvider.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/signatures/JavadocSignatureProvider.kt b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/signatures/JavadocSignatureProvider.kt
index 96616794..d9aed18f 100644
--- a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/signatures/JavadocSignatureProvider.kt
+++ b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/signatures/JavadocSignatureProvider.kt
@@ -95,7 +95,7 @@ class JavadocSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLo
modifiers {
text(f.modifier[it]?.takeIf { it !in ignoredModifiers }?.name?.plus(" ") ?: "")
text(f.modifiers()[it]?.toSignatureString() ?: "")
- val usedGenerics = f.generics.filter { f uses it }
+ val usedGenerics = if (f.isConstructor) f.generics.filter { f uses it } else f.generics
list(usedGenerics, prefix = "<", suffix = "> ") {
+buildSignature(it)
}