commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r919995 - /commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java
Date Sun, 07 Mar 2010 13:44:26 GMT
Author: sebb
Date: Sun Mar  7 13:44:26 2010
New Revision: 919995

URL: http://svn.apache.org/viewvc?rev=919995&view=rev
Log:
Revert r919684 - not binary compatible

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

Modified: commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java?rev=919995&r1=919994&r2=919995&view=diff
==============================================================================
--- commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java (original)
+++ commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java Sun Mar  7 13:44:26
2010
@@ -560,15 +560,14 @@
      *
      * @param srcFile  an existing file to copy, must not be <code>null</code>
      * @param destDir  the directory to place the copy in, must not be <code>null</code>
-     * @return the new file
      *
      * @throws NullPointerException if source or destination is null
      * @throws IOException if source or destination is invalid
      * @throws IOException if an IO error occurs during copying
      * @see #copyFile(File, File, boolean)
      */
-    public static File copyFileToDirectory(File srcFile, File destDir) throws IOException
{
-        return copyFileToDirectory(srcFile, destDir, true);
+    public static void copyFileToDirectory(File srcFile, File destDir) throws IOException
{
+        copyFileToDirectory(srcFile, destDir, true);
     }
 
     /**
@@ -583,7 +582,6 @@
      * @param destDir  the directory to place the copy in, must not be <code>null</code>
      * @param preserveFileDate  true if the file date of the copy
      *  should be the same as the original
-     * @return the new file
      *
      * @throws NullPointerException if source or destination is <code>null</code>
      * @throws IOException if source or destination is invalid
@@ -591,7 +589,7 @@
      * @see #copyFile(File, File, boolean)
      * @since Commons IO 1.3
      */
-    public static File copyFileToDirectory(File srcFile, File destDir, boolean preserveFileDate)
throws IOException {
+    public static void copyFileToDirectory(File srcFile, File destDir, boolean preserveFileDate)
throws IOException {
         if (destDir == null) {
             throw new NullPointerException("Destination must not be null");
         }
@@ -600,7 +598,6 @@
         }
         File destFile = new File(destDir, srcFile.getName());
         copyFile(srcFile, destFile, preserveFileDate);
-        return destFile;
     }
 
     /**



Mime
View raw message