Skip to content

Commit cc74993

Browse files
committed
clean up
1 parent 7bb500d commit cc74993

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/io/openapiprocessor/spring/writer/java/MappingAnnotationWriter.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ class MappingAnnotationWriter(private val annotations: SpringFrameworkAnnotation
3737
mapping += '}'
3838
}
3939

40-
val contentTypes = endpointResponse.contentTypes
41-
if (contentTypes.isNotEmpty()) {
40+
val produces = endpointResponse.contentTypes
41+
if (produces.isNotEmpty()) {
4242
mapping += ", "
4343
mapping += "produces = {"
4444

45-
mapping += contentTypes.joinToString(", ") {
45+
mapping += produces.joinToString(", ") {
4646
quote(it)
4747
}
4848

0 commit comments

Comments
 (0)