diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-08-27 10:23:08 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-27 17:35:04 +0200 |
commit | 1cefaa46345cd13a36e12060118b1ab5f2936502 (patch) | |
tree | 5980cc4dd1bdc1db434e5f0a897a86406af38458 /plugins/kotlin-as-java/src | |
parent | 17f3fea789abe3d6fb03eec361ebac5d78a2f9fd (diff) | |
download | dokka-1cefaa46345cd13a36e12060118b1ab5f2936502.tar.gz dokka-1cefaa46345cd13a36e12060118b1ab5f2936502.tar.bz2 dokka-1cefaa46345cd13a36e12060118b1ab5f2936502.zip |
Apply requested changes
Diffstat (limited to 'plugins/kotlin-as-java/src')
-rw-r--r-- | plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt | 4 | ||||
-rw-r--r-- | plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt b/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt index f169f89a..3fd9cf18 100644 --- a/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt +++ b/plugins/kotlin-as-java/src/main/kotlin/converters/KotlinToJavaConverter.kt @@ -172,7 +172,7 @@ internal fun DClass.asJava(): DClass = copy( ) private fun DTypeParameter.asJava(): DTypeParameter = copy( - variantTypeParameter = variantTypeParameter.withNewDri(dri.possiblyAsJava()), + variantTypeParameter = variantTypeParameter.withDri(dri.possiblyAsJava()), bounds = bounds.map { it.asJava() } ) @@ -296,4 +296,4 @@ private fun AdditionalModifiers.squash(second: AdditionalModifiers) = AdditionalModifiers(content + second.content) internal fun ClassId.classNames(): String = - shortClassName.identifier + (outerClassId?.classNames()?.let { ".$it" } ?: "")
\ No newline at end of file + shortClassName.identifier + (outerClassId?.classNames()?.let { ".$it" } ?: "") diff --git a/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt b/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt index d9b9dc5b..121c4def 100644 --- a/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt +++ b/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt @@ -141,7 +141,7 @@ class JavaSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLogge private fun signature(t: DTypeParameter) = t.sourceSets.map { contentBuilder.contentFor(t, styles = t.stylesIfDeprecated(it), sourceSets = setOf(it)) { - text(t.name.substringAfterLast(".")) // Investigate if java classes can be somehow variant + text(t.name.substringAfterLast(".")) list(t.bounds, prefix = " extends ") { signatureForProjection(it) } @@ -173,4 +173,4 @@ class JavaSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLogge is PrimitiveJavaType -> text(p.name) is UnresolvedBound -> text(p.name) } -}
\ No newline at end of file +} |