commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r805996 - /commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java
Date Wed, 19 Aug 2009 22:17:37 GMT
Author: sebb
Date: Wed Aug 19 22:17:37 2009
New Revision: 805996

URL: http://svn.apache.org/viewvc?rev=805996&view=rev
Log:
Ensure Printwriter is closed.

Modified:
    commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java

Modified: commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java?rev=805996&r1=805995&r2=805996&view=diff
==============================================================================
--- commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java (original)
+++ commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java Wed Aug 19 22:17:37
2009
@@ -113,6 +113,7 @@
         PrintWriter out = new PrintWriter(buf);
         out.println();
         LINE_SEPARATOR = buf.toString();
+        out.close();
     }
 
     /**



Mime
View raw message