File tree Expand file tree Collapse file tree
openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/writer/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import java.io.Writer
1313
1414class ValidationWriter (
1515 private val options : ApiOptions ,
16- private val stringValuesWriter : StringValuesWriter = StringValuesWriter (options)
16+ private val writer : StringValuesWriter = StringValuesWriter (options)
1717) {
1818 fun write (formatter : SourceFormatter , writerFactory : WriterFactory ) {
1919 if (! options.beanValidation)
@@ -38,13 +38,13 @@ class ValidationWriter(
3838
3939 private fun writeValues (writer : Writer , formatter : SourceFormatter ) {
4040 val raw = StringWriter ()
41- stringValuesWriter .writeValues(raw)
41+ this .writer .writeValues(raw)
4242 writer.write(formatter.format(raw.toString()))
4343 }
4444
4545 private fun writeValueValidator (writer : Writer , formatter : SourceFormatter ) {
4646 val raw = StringWriter ()
47- stringValuesWriter .writeValueValidator(raw)
47+ this .writer .writeValueValidator(raw)
4848 writer.write(formatter.format(raw.toString()))
4949 }
5050}
You can’t perform that action at this time.
0 commit comments