Skip to content

Commit bd59d6b

Browse files
committed
avoid unnecessary line feeds
1 parent 991c24c commit bd59d6b

File tree

1 file changed

+2
-4
lines changed
  • openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/writer/java

1 file changed

+2
-4
lines changed

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/writer/java/JavaDocWriter.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,14 @@ open class JavaDocWriter {
5959
}
6060

6161
if (endpoint.description != null) {
62-
comment += convert(endpoint.description) + "\n"
62+
comment += convert(endpoint.description)
6363
}
6464

6565
if (endpoint.parameters.isNotEmpty() || endpointResponse.description != null)
6666
comment += "\n"
6767

6868
endpoint.parameters.forEach {
6969
comment += convert(it.description, "@param ${toCamelCase (it.name)}")
70-
comment += "\n"
7170
}
7271

7372
val response = convert(endpointResponse.description, "@return")
@@ -148,8 +147,7 @@ open class JavaDocWriter {
148147
result += " "
149148
}
150149

151-
result += renderer
152-
.render(doc)
150+
result += renderer.render(doc) + "\n"
153151

154152
return result
155153
}

0 commit comments

Comments
 (0)