@@ -176,7 +176,6 @@ public class FileUtils {
176176 */
177177 public static final File [] EMPTY_FILE_ARRAY = new File [0 ];
178178
179- //-----------------------------------------------------------------------
180179 /**
181180 * Returns a human-readable version of the file size, where the input represents a specific number of bytes.
182181 * <p>
@@ -307,7 +306,6 @@ public static Checksum checksum(final File file, final Checksum checksum) throws
307306 return checksum ;
308307 }
309308
310- //-----------------------------------------------------------------------
311309 /**
312310 * Computes the checksum of a file using the CRC32 checksum routine.
313311 * The value of the checksum is returned.
@@ -373,7 +371,6 @@ private static void cleanDirectoryOnExit(final File directory) throws IOExceptio
373371 }
374372 }
375373
376- //-----------------------------------------------------------------------
377374 /**
378375 * Compares the contents of two files to determine if they are equal or not.
379376 * <p>
@@ -430,7 +427,6 @@ public static boolean contentEquals(final File file1, final File file2) throws I
430427 }
431428 }
432429
433- //-----------------------------------------------------------------------
434430 /**
435431 * Compares the contents of two files to determine if they are equal or not.
436432 * <p>
@@ -482,7 +478,6 @@ public static boolean contentEqualsIgnoreEOL(final File file1, final File file2,
482478 }
483479 }
484480
485- //-----------------------------------------------------------------------
486481 /**
487482 * Converts a Collection containing java.io.File instanced into array
488483 * representation. This is to account for the difference between
@@ -738,7 +733,6 @@ public static void copyDirectory(final File srcDir, final File destDir, final Fi
738733 doCopyDirectory (srcDir , destDir , filter , preserveFileDate , exclusionList , copyOptions );
739734 }
740735
741- //-----------------------------------------------------------------------
742736 /**
743737 * Copies a directory to within another directory preserving the file dates.
744738 * <p>
@@ -910,7 +904,6 @@ public static long copyFile(final File input, final OutputStream output) throws
910904 }
911905 }
912906
913- //-----------------------------------------------------------------------
914907 /**
915908 * Copies a file to a directory preserving the file date.
916909 * <p>
@@ -1094,7 +1087,6 @@ public static void copyToFile(final InputStream source, final File destination)
10941087 }
10951088 }
10961089
1097- //-----------------------------------------------------------------------
10981090 /**
10991091 * Copies bytes from the URL <code>source</code> to a file
11001092 * <code>destination</code>. The directories up to <code>destination</code>
@@ -1198,7 +1190,6 @@ static String decodeUrl(final String url) {
11981190 return decoded ;
11991191 }
12001192
1201- //-----------------------------------------------------------------------
12021193 /**
12031194 * Deletes a directory recursively.
12041195 *
@@ -1410,7 +1401,6 @@ private static void doCopyFile(final File srcFile, final File destFile, final bo
14101401 }
14111402 }
14121403
1413- //-----------------------------------------------------------------------
14141404 /**
14151405 * Deletes a file. If file is a directory, delete it and all sub-directories.
14161406 * <p>
@@ -1508,7 +1498,6 @@ public static void forceMkdirParent(final File file) throws IOException {
15081498 forceMkdir (parent );
15091499 }
15101500
1511- //-----------------------------------------------------------------------
15121501 /**
15131502 * Construct a file from the set of name elements.
15141503 *
@@ -1591,7 +1580,6 @@ public static String getUserDirectoryPath() {
15911580 return System .getProperty ("user.home" );
15921581 }
15931582
1594- //-----------------------------------------------------------------------
15951583 /**
15961584 * Finds files within a given directory (and optionally its
15971585 * subdirectories). All files found are filtered by an IOFileFilter.
@@ -1902,7 +1890,6 @@ public static boolean isFileOlder(final File file, final Date date) {
19021890 return isFileOlder (file , date .getTime ());
19031891 }
19041892
1905- //-----------------------------------------------------------------------
19061893 /**
19071894 * Tests if the specified {@code File} is older than the reference {@code File}.
19081895 *
@@ -2349,7 +2336,6 @@ public static void moveToDirectory(final File src, final File destDir, final boo
23492336 }
23502337 }
23512338
2352- //-----------------------------------------------------------------------
23532339 /**
23542340 * Opens a {@link FileInputStream} for the specified file, providing better
23552341 * error messages than simply calling <code>new FileInputStream(file)</code>.
@@ -2384,9 +2370,7 @@ public static FileInputStream openInputStream(final File file) throws IOExceptio
23842370 return new FileInputStream (file );
23852371 }
23862372
2387- //-----------------------------------------------------------------------
23882373
2389- //-----------------------------------------------------------------------
23902374 /**
23912375 * Opens a {@link FileOutputStream} for the specified file, checking and
23922376 * creating the parent directory if it does not exist.
@@ -2488,7 +2472,6 @@ public static String readFileToString(final File file) throws IOException {
24882472 return readFileToString (file , Charset .defaultCharset ());
24892473 }
24902474
2491- //-----------------------------------------------------------------------
24922475 /**
24932476 * Reads the contents of a file into a String.
24942477 * The file is always closed.
@@ -2600,7 +2583,6 @@ private static IOFileFilter setUpEffectiveFileFilter(final IOFileFilter fileFilt
26002583 return FileFilterUtils .and (fileFilter , FileFilterUtils .notFileFilter (DirectoryFileFilter .INSTANCE ));
26012584 }
26022585
2603- //-----------------------------------------------------------------------
26042586 /**
26052587 * Returns the size of the specified file or directory. If the provided
26062588 * {@link File} is a regular file, then the file's length is returned.
@@ -2771,7 +2753,6 @@ private static BigInteger sizeOfDirectoryBig0(final File directory) {
27712753 return size ;
27722754 }
27732755
2774- //-----------------------------------------------------------------------
27752756 /**
27762757 * Convert from a <code>URL</code> to a <code>File</code>.
27772758 * <p>
@@ -2835,7 +2816,6 @@ public static File[] toFiles(final URL... urls) {
28352816 return files ;
28362817 }
28372818
2838- //-----------------------------------------------------------------------
28392819 /**
28402820 * Converts an array of file extensions to suffixes for use
28412821 * with IOFileFilters.
@@ -2851,7 +2831,6 @@ private static String[] toSuffixes(final String... extensions) {
28512831 return suffixes ;
28522832 }
28532833
2854- //-----------------------------------------------------------------------
28552834 /**
28562835 * Implements the same behavior as the "touch" utility on Unix. It creates
28572836 * a new file with size 0 or, if the file exists already, it is opened and
@@ -2958,7 +2937,6 @@ private static File[] verifiedListFiles(final File directory) throws IOException
29582937 return files ;
29592938 }
29602939
2961- //-----------------------------------------------------------------------
29622940 /**
29632941 * Waits for NFS to propagate a file creation, imposing a timeout.
29642942 * <p>
0 commit comments