commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject cvs commit: jakarta-commons/io/src/java/org/apache/commons/io FileUtils.java
Date Fri, 12 Mar 2004 21:44:25 GMT
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


Mime
View raw message