Skip to content

Commit 16b3e3e

Browse files
committed
Eclipse warns that files are not closed
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1379018 13f79535-47bb-0310-9956-ffa450edef68
1 parent 211bbdf commit 16b3e3e

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/test/java/org/apache/commons/codec/binary/Base32OutputStreamTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ public void testWriteOutOfBounds() throws Exception {
313313
} catch (IndexOutOfBoundsException ioobe) {
314314
// Expected
315315
}
316+
out.close();
316317
}
317318

318319
/**
@@ -331,6 +332,7 @@ public void testWriteToNullCoverage() throws Exception {
331332
} catch (NullPointerException e) {
332333
// Expected
333334
}
335+
out.close();
334336
}
335337

336338
}

src/test/java/org/apache/commons/codec/binary/Base64OutputStreamTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ public void testWriteOutOfBounds() throws Exception {
324324
} catch (IndexOutOfBoundsException ioobe) {
325325
// Expected
326326
}
327+
out.close();
327328
}
328329

329330
/**
@@ -341,6 +342,8 @@ public void testWriteToNullCoverage() throws Exception {
341342
fail("Expcted Base64OutputStream.write(null) to throw a NullPointerException");
342343
} catch (NullPointerException e) {
343344
// Expected
345+
} finally {
346+
out.close();
344347
}
345348
}
346349

0 commit comments

Comments
 (0)