Skip to content

Commit a5a69e1

Browse files
committed
simpler naming
1 parent 36e866f commit a5a69e1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import java.io.Writer
1313

1414
class 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
}

0 commit comments

Comments
 (0)