Skip to content

Commit

Permalink
Clean ups.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Gregory committed Oct 6, 2019
1 parent 722960a commit af28635
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java
Expand Up @@ -52,18 +52,16 @@ private void createEndChannel(final File csvFile) {
try (CSVParser parser = csvFormat
.parse(new InputStreamReader(new FileInputStream(csvFile), StandardCharsets.UTF_8))) {
if (parser.iterator().hasNext()) {
System.out.println(parser.getCurrentLineNumber());
System.out.println(parser.getRecordNumber());
// System.out.println(parser.getCurrentLineNumber());
// System.out.println(parser.getRecordNumber());
// get only first record we don't need other's
final CSVRecord firstRecord = parser.iterator().next(); // this fails
parser.iterator().next(); // this fails

return;
}
} catch (final IOException e) {
throw new IllegalStateException("Error while adding end channel to csv", e);
throw new IllegalStateException("Error while adding end channel to CSV", e);
}

return;
}

@Test
Expand Down

0 comments on commit af28635

Please sign in to comment.