commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1656356 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ScatterZipOutputStreamTest.java
Date Sun, 01 Feb 2015 19:41:56 GMT
Author: sebb
Date: Sun Feb  1 19:41:56 2015
New Revision: 1656356

URL: http://svn.apache.org/r1656356
Log:
Avoid unclosed stream warnings

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ScatterZipOutputStreamTest.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ScatterZipOutputStreamTest.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ScatterZipOutputStreamTest.java?rev=1656356&r1=1656355&r2=1656356&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ScatterZipOutputStreamTest.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/zip/ScatterZipOutputStreamTest.java
Sun Feb  1 19:41:56 2015
@@ -73,6 +73,7 @@ public class ScatterZipOutputStreamTest
         final ZipArchiveEntry a_entry = zf.getEntries("a.txt").iterator().next();
         assertEquals(4, a_entry.getSize());
         assertArrayEquals(A_PAYLOAD, IOUtils.toByteArray(zf.getInputStream(a_entry)));
+        zf.close();
     }
 
     private InputStreamSupplier createPayloadSupplier(final ByteArrayInputStream payload)
{



Mime
View raw message