diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-07-13 17:07:27 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-14 08:17:21 +0200 |
commit | f3dd48a464bbefcfdfc5c90f6c46453c67e803dd (patch) | |
tree | fb19ee6bd6471000d3768d9791c2c666cf4c0bb4 /plugins/kotlin-as-java/src | |
parent | 0104134b4891ccc97c27d4fee9846a9f74d46d0a (diff) | |
download | dokka-f3dd48a464bbefcfdfc5c90f6c46453c67e803dd.tar.gz dokka-f3dd48a464bbefcfdfc5c90f6c46453c67e803dd.tar.bz2 dokka-f3dd48a464bbefcfdfc5c90f6c46453c67e803dd.zip |
Remove unnecessary grouping in Java Signature Provider that caused signature to be in 2 lines
Diffstat (limited to 'plugins/kotlin-as-java/src')
-rw-r--r-- | plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt | 27 | ||||
-rw-r--r-- | plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt | 8 |
2 files changed, 15 insertions, 20 deletions
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 0e257945..158dda22 100644 --- a/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt +++ b/plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt @@ -121,22 +121,19 @@ class JavaSignatureProvider(ctcc: CommentsToContentConverter, logger: DokkaLogge val returnType = f.type signatureForProjection(returnType) text(nbsp.toString()) - group { - link(f.name, f.dri) - list(f.generics, prefix = "<", suffix = ">") { - +buildSignature(it) - } - text("(") - list(f.parameters) { - annotationsInline(it) - text(it.modifiers()[it]?.toSignatureString() ?: "") - signatureForProjection(it.type) - text(nbsp.toString()) - link(it.name!!, it.dri) - } - text(")") + link(f.name, f.dri) + list(f.generics, prefix = "<", suffix = ">") { + +buildSignature(it) } - + text("(") + list(f.parameters) { + annotationsInline(it) + text(it.modifiers()[it]?.toSignatureString() ?: "") + signatureForProjection(it.type) + text(nbsp.toString()) + link(it.name!!, it.dri) + } + text(")") } } diff --git a/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt b/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt index e12ec6cb..af66a48e 100644 --- a/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt +++ b/plugins/kotlin-as-java/src/test/kotlin/KotlinAsJavaPluginTest.kt @@ -172,12 +172,10 @@ class KotlinAsJavaPluginTest : AbstractCoreTest() { +" String" } } - group { - link { - +"getPublicProperty" - } - +"()" + link { + +"getPublicProperty" } + +"()" } } } |