Skip to content

Commit af28635

Browse files
author
Gary Gregory
committed
Clean ups.
1 parent 722960a commit af28635

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/test/java/org/apache/commons/csv/issues/JiraCsv213Test.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)