File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/main/kotlin/io/openapiprocessor/spring/writer/java Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,13 @@ class ParameterAnnotationWriter(
3434
3535 override fun write (target : Writer , parameter : Parameter ) {
3636 if (parameter is RequestBody ) {
37- target.write(createAnnotation (parameter))
37+ target.write(createRequestBodyAnnotation (parameter))
3838 } else {
39- target.write(createAnnotation (parameter))
39+ target.write(createParameterAnnotation (parameter))
4040 }
4141 }
4242
43-
44- private fun createAnnotation (requestBody : RequestBody ): String {
43+ private fun createRequestBodyAnnotation (requestBody : RequestBody ): String {
4544 var annotation = getAnnotationName(requestBody)
4645
4746 // required is default, so add required only if the parameter is not required
@@ -52,7 +51,7 @@ class ParameterAnnotationWriter(
5251 return annotation
5352 }
5453
55- private fun createAnnotation (parameter : Parameter ): String {
54+ private fun createParameterAnnotation (parameter : Parameter ): String {
5655 if (! parameter.withAnnotation) {
5756 return " "
5857 }
You can’t perform that action at this time.
0 commit comments