commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r758782 - /commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
Date Thu, 26 Mar 2009 18:10:39 GMT
Author: sebb
Date: Thu Mar 26 18:10:20 2009
New Revision: 758782

URL: http://svn.apache.org/viewvc?rev=758782&view=rev
Log:
Close files so they can be deleted

Modified:
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java?rev=758782&r1=758781&r2=758782&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
Thu Mar 26 18:10:20 2009
@@ -66,6 +66,7 @@
             ChangeSet changes = new ChangeSet();
             changes.delete("bla");
             changes.perform(ais, out);
+            is.close();
 
         } finally {
             if (out != null)
@@ -110,6 +111,7 @@
             ChangeSet changes = new ChangeSet();
             changes.delete("bla/test5.xml");
             changes.perform(ais, out);
+            is.close();
 
         } finally {
             if (out != null)
@@ -161,6 +163,7 @@
             changes.add(entry, new FileInputStream(file1));
 
             changes.perform(ais, out);
+            is.close();
 
         } finally {
             if (out != null)
@@ -210,6 +213,7 @@
             changes.delete("testdata/test1.xml");
 
             changes.perform(ais, out);
+            is.close();
 
         } finally {
             if (out != null)
@@ -262,6 +266,7 @@
             changes.delete("blub");
 
             changes.perform(ais, out);
+            is.close();
 
         } finally {
             if (out != null)
@@ -316,6 +321,7 @@
             changes.delete("bla");
 
             changes.perform(ais, out);
+            is.close();
 
         } finally {
             if (out != null)



Mime
View raw message