Skip to content

Commit 86d4884

Browse files
committed
Ensure Closeable is closed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1509264 13f79535-47bb-0310-9956-ffa450edef68
1 parent efdcb37 commit 86d4884

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ public void testGetRecordNumberWithCR() throws Exception {
702702
@Test(expected = IllegalArgumentException.class)
703703
public void testInvalidFormat() throws Exception {
704704
final CSVFormat invalidFormat = CSVFormat.DEFAULT.withDelimiter(CR);
705-
new CSVParser((Reader) null, invalidFormat);
705+
new CSVParser((Reader) null, invalidFormat).close();
706706
}
707707

708708
private void validateRecordNumbers(final String lineSeparator) throws IOException {

src/test/java/org/apache/commons/csv/CSVPrinterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,6 @@ public void testEOLPlain() throws IOException {
487487
@Test(expected = IllegalArgumentException.class)
488488
public void testInvalidFormat() throws Exception {
489489
final CSVFormat invalidFormat = CSVFormat.DEFAULT.withDelimiter(CR);
490-
new CSVPrinter(null, invalidFormat);
490+
new CSVPrinter(null, invalidFormat).close();
491491
}
492492
}

0 commit comments

Comments
 (0)