commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1334516 - /commons/proper/net/trunk/src/main/java/examples/Main.java
Date Sat, 05 May 2012 22:09:58 GMT
Author: sebb
Date: Sat May  5 22:09:58 2012
New Revision: 1334516

URL: http://svn.apache.org/viewvc?rev=1334516&view=rev
Log:
Close file

Modified:
    commons/proper/net/trunk/src/main/java/examples/Main.java

Modified: commons/proper/net/trunk/src/main/java/examples/Main.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/Main.java?rev=1334516&r1=1334515&r2=1334516&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/examples/Main.java (original)
+++ commons/proper/net/trunk/src/main/java/examples/Main.java Sat May  5 22:09:58 2012
@@ -53,6 +53,7 @@ public class Main {
                 }
                 JarFile jf = new JarFile(sourceFile);
                 Enumeration<JarEntry> e = jf.entries();
+                jf.close();
                 while (e.hasMoreElements()) {
                   JarEntry je = e.nextElement();
                   String name = je.getName();



Mime
View raw message