File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public void testCSVFile() throws Exception {
8888 final String [] split = line .split (" " );
8989 assertTrue (testName +" require 1 param" , split .length >= 1 );
9090 // first line starts with csv data file name
91- final BufferedReader csvFile = new BufferedReader (new FileReader (new File (BASE , split [0 ])));
91+ final BufferedReader csvFileReader = new BufferedReader (new FileReader (new File (BASE , split [0 ])));
9292 CSVFormat format = CSVFormat .newFormat (',' ).withQuoteChar ('"' );
9393 boolean checkComments = false ;
9494 for (int i =1 ; i < split .length ; i ++) {
@@ -110,7 +110,7 @@ public void testCSVFile() throws Exception {
110110 assertEquals (testName +" Expected format " , line , format .toString ());
111111
112112 // Now parse the file and compare against the expected results
113- for (final CSVRecord record : format .parse (csvFile )) {
113+ for (final CSVRecord record : format .parse (csvFileReader )) {
114114 String parsed = record .toString ();
115115 if (checkComments ) {
116116 final String comment = record .getComment ().replace ("\n " , "\\ n" );
You can’t perform that action at this time.
0 commit comments