You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by je...@apache.org on 2004/03/12 22:44:25 UTC
cvs commit: jakarta-commons/io/src/java/org/apache/commons/io FileUtils.java
jeremias 2004/03/12 13:44:25
Modified: io/src/java/org/apache/commons/io FileUtils.java
Log:
Reestablish JDK 1.3 compatibility.
Revision Changes Path
1.28 +3 -3 jakarta-commons/io/src/java/org/apache/commons/io/FileUtils.java
Index: FileUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons/io/src/java/org/apache/commons/io/FileUtils.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- FileUtils.java 23 Feb 2004 04:35:59 -0000 1.27
+++ FileUtils.java 12 Mar 2004 21:44:25 -0000 1.28
@@ -135,8 +135,8 @@
* @throws IOException If an I/O problem occurs
*/
public static void touch(File file) throws IOException {
- OutputStream out = new java.io.FileOutputStream(file, true);
- out.close();
+ OutputStream out = new java.io.FileOutputStream(file);
+ IOUtils.closeQuietly(out);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org