@@ -1216,22 +1216,22 @@ public void testDelimiterSameAsRecordSeparatorThrowsException() {
12161216 @ Test
12171217 public void testWithHeaderEnumNull () {
12181218 final CSVFormat format = CSVFormat .DEFAULT ;
1219- Class <Enum <?>> simpleName = null ;
1219+ final Class <Enum <?>> simpleName = null ;
12201220 format .withHeader (simpleName );
12211221 }
12221222
12231223 @ Test
12241224 public void testWithHeaderResultSetNull () throws SQLException {
12251225 final CSVFormat format = CSVFormat .DEFAULT ;
1226- ResultSet resultSet = null ;
1226+ final ResultSet resultSet = null ;
12271227 format .withHeader (resultSet );
12281228 }
12291229
12301230 @ Test
12311231 public void testPrintWithQuoteModeIsNONE () throws IOException {
12321232 final Reader in = new StringReader ("a,b,c" );
12331233 final Appendable out = new StringBuilder ();
1234- CSVFormat format = CSVFormat .RFC4180 .withDelimiter (',' ).withQuote ('"' ).withEscape ('?' ).withQuoteMode (QuoteMode .NONE );
1234+ final CSVFormat format = CSVFormat .RFC4180 .withDelimiter (',' ).withQuote ('"' ).withEscape ('?' ).withQuoteMode (QuoteMode .NONE );
12351235 format .print (in , out , true );
12361236 assertEquals ("a?,b?,c" , out .toString ());
12371237 }
@@ -1240,7 +1240,7 @@ public void testPrintWithQuoteModeIsNONE() throws IOException {
12401240 public void testPrintWithQuotes () throws IOException {
12411241 final Reader in = new StringReader ("\" a,b,c\r \n x,y,z" );
12421242 final Appendable out = new StringBuilder ();
1243- CSVFormat format = CSVFormat .RFC4180 .withDelimiter (',' ).withQuote ('"' ).withEscape ('?' ).withQuoteMode (QuoteMode .NON_NUMERIC );
1243+ final CSVFormat format = CSVFormat .RFC4180 .withDelimiter (',' ).withQuote ('"' ).withEscape ('?' ).withQuoteMode (QuoteMode .NON_NUMERIC );
12441244 format .print (in , out , true );
12451245 assertEquals ("\" \" \" \" a,b,c\r \n x,y,z\" " , out .toString ());
12461246 }
@@ -1249,14 +1249,14 @@ public void testPrintWithQuotes() throws IOException {
12491249 public void testPrintWithoutQuotes () throws IOException {
12501250 final Reader in = new StringReader ("" );
12511251 final Appendable out = new StringBuilder ();
1252- CSVFormat format = CSVFormat .RFC4180 .withDelimiter (',' ).withQuote ('"' ).withEscape ('?' ).withQuoteMode (QuoteMode .NON_NUMERIC );
1252+ final CSVFormat format = CSVFormat .RFC4180 .withDelimiter (',' ).withQuote ('"' ).withEscape ('?' ).withQuoteMode (QuoteMode .NON_NUMERIC );
12531253 format .print (in , out , true );
12541254 assertEquals ("\" \" " , out .toString ());
12551255 }
12561256
12571257 @ Test
12581258 public void testTrim () throws IOException {
1259- CSVFormat formatWithTrim = CSVFormat .DEFAULT .withDelimiter (',' ).withTrim ().withQuote (null ).withRecordSeparator (CRLF );
1259+ final CSVFormat formatWithTrim = CSVFormat .DEFAULT .withDelimiter (',' ).withTrim ().withQuote (null ).withRecordSeparator (CRLF );
12601260
12611261 CharSequence in = "a,b,c" ;
12621262 final StringBuilder out = new StringBuilder ();
0 commit comments