Use final.

This commit is contained in:
Gary Gregory 2021-07-10 09:44:52 -04:00
parent 66da39dd6f
commit 8a5a0656d7
2 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@ public class JiraCsv167Test {
}
}
}
CSVFormat format = CSVFormat.DEFAULT.builder()
final CSVFormat format = CSVFormat.DEFAULT.builder()
// @formatter:off
.setAllowMissingColumnNames(false)
.setCommentMarker('#')

View File

@ -38,7 +38,7 @@ public class JiraCsv203Test {
.setQuoteMode(QuoteMode.ALL)
.build();
// @formatter:on
final StringBuffer buffer = new StringBuffer();
final StringBuilder buffer = new StringBuilder();
try (final CSVPrinter printer = new CSVPrinter(buffer, format)) {
printer.printRecord(null, "Hello", null, "World");
}
@ -54,7 +54,7 @@ public class JiraCsv203Test {
.setQuoteMode(QuoteMode.ALL_NON_NULL)
.build();
// @formatter:on
final StringBuffer buffer = new StringBuffer();
final StringBuilder buffer = new StringBuilder();
try (final CSVPrinter printer = new CSVPrinter(buffer, format)) {
printer.printRecord(null, "Hello", null, "World");
}
@ -69,7 +69,7 @@ public class JiraCsv203Test {
.setIgnoreSurroundingSpaces(true)
.build();
// @formatter:on
final StringBuffer buffer = new StringBuffer();
final StringBuilder buffer = new StringBuilder();
try (final CSVPrinter printer = new CSVPrinter(buffer, format)) {
printer.printRecord(null, "Hello", null, "World");
}
@ -85,7 +85,7 @@ public class JiraCsv203Test {
.setQuoteMode(QuoteMode.MINIMAL)
.build();
// @formatter:on
final StringBuffer buffer = new StringBuffer();
final StringBuilder buffer = new StringBuilder();
try (final CSVPrinter printer = new CSVPrinter(buffer, format)) {
printer.printRecord(null, "Hello", null, "World");
}
@ -101,7 +101,7 @@ public class JiraCsv203Test {
.setQuoteMode(QuoteMode.NON_NUMERIC)
.build();
// @formatter:on
final StringBuffer buffer = new StringBuffer();
final StringBuilder buffer = new StringBuilder();
try (final CSVPrinter printer = new CSVPrinter(buffer, format)) {
printer.printRecord(null, "Hello", null, "World");
}
@ -117,7 +117,7 @@ public class JiraCsv203Test {
.setQuoteMode(QuoteMode.ALL)
.build();
// @formatter:on
final StringBuffer buffer = new StringBuffer();
final StringBuilder buffer = new StringBuilder();
try (final CSVPrinter printer = new CSVPrinter(buffer, format)) {
printer.printRecord(null, "Hello", null, "World");
}
@ -133,7 +133,7 @@ public class JiraCsv203Test {
.setQuoteMode(QuoteMode.ALL)
.build();
// @formatter:on
final StringBuffer buffer = new StringBuffer();
final StringBuilder buffer = new StringBuilder();
try (final CSVPrinter printer = new CSVPrinter(buffer, format)) {
printer.printRecord("", "Hello", "", "World");
// printer.printRecord(new Object[] { null, "Hello", null, "World" });