File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/csv/issues Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,18 +52,16 @@ private void createEndChannel(final File csvFile) {
5252 try (CSVParser parser = csvFormat
5353 .parse (new InputStreamReader (new FileInputStream (csvFile ), StandardCharsets .UTF_8 ))) {
5454 if (parser .iterator ().hasNext ()) {
55- System .out .println (parser .getCurrentLineNumber ());
56- System .out .println (parser .getRecordNumber ());
55+ // System.out.println(parser.getCurrentLineNumber());
56+ // System.out.println(parser.getRecordNumber());
5757 // get only first record we don't need other's
58- final CSVRecord firstRecord = parser .iterator ().next (); // this fails
58+ parser .iterator ().next (); // this fails
5959
6060 return ;
6161 }
6262 } catch (final IOException e ) {
63- throw new IllegalStateException ("Error while adding end channel to csv " , e );
63+ throw new IllegalStateException ("Error while adding end channel to CSV " , e );
6464 }
65-
66- return ;
6765 }
6866
6967 @ Test
You can’t perform that action at this time.
0 commit comments