This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new 2e2cc74 Ensure closed 2e2cc74 is described below commit 2e2cc7413d6a82c2e8f68cff916d92d682b2cc48 Author: Sebb <s...@apache.org> AuthorDate: Sat Aug 8 00:17:31 2020 +0100 Ensure closed --- .../java/org/apache/commons/io/input/SwappedDataInputStreamTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/io/input/SwappedDataInputStreamTest.java b/src/test/java/org/apache/commons/io/input/SwappedDataInputStreamTest.java index 634bc7c..083a11d 100644 --- a/src/test/java/org/apache/commons/io/input/SwappedDataInputStreamTest.java +++ b/src/test/java/org/apache/commons/io/input/SwappedDataInputStreamTest.java @@ -63,8 +63,10 @@ public class SwappedDataInputStreamTest { @Test public void testReadBoolean() throws IOException { bytes = new byte[] {0x00, 0x01, 0x02,}; - try (final ByteArrayInputStream bais = new ByteArrayInputStream(bytes)) { + try ( + final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); final SwappedDataInputStream sdis = new SwappedDataInputStream(bais); + ) { assertEquals(false, sdis.readBoolean()); assertEquals(true, sdis.readBoolean()); assertEquals(true, sdis.readBoolean());