From b05eb93d345cccd0cae9393f99acd428012d1106 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Tue, 25 Aug 2020 14:51:53 +0200 Subject: Add handling for generic type parameters variance --- .../jetbrains/dokka/javadoc/signatures/JavadocSignatureProvider.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/javadoc') 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("?") -- cgit