aboutsummaryrefslogtreecommitdiff
path: root/plugins/kotlin-as-java/src/main/kotlin
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-07-13 17:07:27 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-14 08:17:21 +0200
commitf3dd48a464bbefcfdfc5c90f6c46453c67e803dd (patch)
treefb19ee6bd6471000d3768d9791c2c666cf4c0bb4 /plugins/kotlin-as-java/src/main/kotlin
parent0104134b4891ccc97c27d4fee9846a9f74d46d0a (diff)
downloaddokka-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/main/kotlin')
-rw-r--r--plugins/kotlin-as-java/src/main/kotlin/signatures/JavaSignatureProvider.kt27
1 files changed, 12 insertions, 15 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(")")
}
}