aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-08-25 14:51:53 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-27 17:35:04 +0200
commitb05eb93d345cccd0cae9393f99acd428012d1106 (patch)
treee5bbc7ec75b5b5034c3d6b3e7c9690a510150264 /plugins/javadoc
parent1c6dabaee7764954a9783effa7463f9866a02066 (diff)
downloaddokka-b05eb93d345cccd0cae9393f99acd428012d1106.tar.gz
dokka-b05eb93d345cccd0cae9393f99acd428012d1106.tar.bz2
dokka-b05eb93d345cccd0cae9393f99acd428012d1106.zip
Add handling for generic type parameters variance
Diffstat (limited to 'plugins/javadoc')
-rw-r--r--plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/signatures/JavadocSignatureProvider.kt6
1 files changed, 3 insertions, 3 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 d9aed18f..6c93c287 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
@@ -150,7 +150,7 @@ class JavadocSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLo
annotationsBlock(t)
}
signatureWithoutModifiers {
- text(t.name)
+ text(t.name) // Investigate if java classes can be somehow variant
}
supertypes {
list(t.bounds, prefix = "extends ") {
@@ -192,8 +192,8 @@ class JavadocSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLo
signatureForProjection(it)
}
}
- is Variance -> group {
- text(p.kind.toString() + " ")
+ is Variance<*> -> group {
+ text("$p ".takeIf { it.isNotBlank() } ?: "")
signatureForProjection(p.inner)
}
is Star -> text("?")