Remove //-- spacers.
MODIFY
src/main/java/org/apache/commons/io/FileUtils.java
src/main/java/org/apache/commons/io/FileUtils.java
*/
public static final File[] EMPTY_FILE_ARRAY = new File[0];
- //-----------------------------------------------------------------------
/**
* Returns a human-readable version of the file size, where the input represents a specific number of bytes.
* <p>
@@ -307,7 +306,6 @@ public static Checksum checksum(final File file, final Checksum checksum) throws
return checksum;
}
- //-----------------------------------------------------------------------
/**
* Computes the checksum of a file using the CRC32 checksum routine.
* The value of the checksum is returned.
@@ -373,7 +371,6 @@ private static void cleanDirectoryOnExit(final File directory) throws IOExceptio
}
}
- //-----------------------------------------------------------------------
/**
* Compares the contents of two files to determine if they are equal or not.
* <p>
@@ -430,7 +427,6 @@ public static boolean contentEquals(final File file1, final File file2) throws I
}
}
- //-----------------------------------------------------------------------
/**
* Compares the contents of two files to determine if they are equal or not.
* <p>
@@ -482,7 +478,6 @@ public static boolean contentEqualsIgnoreEOL(final File file1, final File file2,
}
}
- //-----------------------------------------------------------------------
/**
* Converts a Collection containing java.io.File instanced into array
* 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
doCopyDirectory(srcDir, destDir, filter, preserveFileDate, exclusionList, copyOptions);
}
- //-----------------------------------------------------------------------
/**
* Copies a directory to within another directory preserving the file dates.
* <p>
@@ -910,7 +904,6 @@ public static long copyFile(final File input, final OutputStream output) throws
}
}
- //-----------------------------------------------------------------------
/**
* Copies a file to a directory preserving the file date.
* <p>
@@ -1094,7 +1087,6 @@ public static void copyToFile(final InputStream source, final File destination)
}
}
- //-----------------------------------------------------------------------
/**
* Copies bytes from the URL <code>source</code> to a file
* <code>destination</code>. The directories up to <code>destination</code>
@@ -1198,7 +1190,6 @@ static String decodeUrl(final String url) {
return decoded;
}
- //-----------------------------------------------------------------------
/**
* Deletes a directory recursively.
*
@@ -1410,7 +1401,6 @@ private static void doCopyFile(final File srcFile, final File destFile, final bo
}
}
- //-----------------------------------------------------------------------
/**
* Deletes a file. If file is a directory, delete it and all sub-directories.
* <p>
@@ -1508,7 +1498,6 @@ public static void forceMkdirParent(final File file) throws IOException {
forceMkdir(parent);
}
- //-----------------------------------------------------------------------
/**
* Construct a file from the set of name elements.
*
@@ -1591,7 +1580,6 @@ public static String getUserDirectoryPath() {
return System.getProperty("user.home");
}
- //-----------------------------------------------------------------------
/**
* Finds files within a given directory (and optionally its
* subdirectories). All files found are filtered by an IOFileFilter.
@@ -1902,7 +1890,6 @@ public static boolean isFileOlder(final File file, final Date date) {
return isFileOlder(file, date.getTime());
}
- //-----------------------------------------------------------------------
/**
* Tests if the specified {@code File} is older than the reference {@code File}.
*
@@ -2349,7 +2336,6 @@ public static void moveToDirectory(final File src, final File destDir, final boo
}
}
- //-----------------------------------------------------------------------
/**
* Opens a {@link FileInputStream} for the specified file, providing better
* error messages than simply calling <code>new FileInputStream(file)</code>.
@@ -2384,9 +2370,7 @@ public static FileInputStream openInputStream(final File file) throws IOExceptio
return new FileInputStream(file);
}
- //-----------------------------------------------------------------------
- //-----------------------------------------------------------------------
/**
* Opens a {@link FileOutputStream} for the specified file, checking and
* creating the parent directory if it does not exist.
@@ -2488,7 +2472,6 @@ public static String readFileToString(final File file) throws IOException {
return readFileToString(file, Charset.defaultCharset());
}
- //-----------------------------------------------------------------------
/**
* Reads the contents of a file into a String.
* The file is always closed.
@@ -2600,7 +2583,6 @@ private static IOFileFilter setUpEffectiveFileFilter(final IOFileFilter fileFilt
return FileFilterUtils.and(fileFilter, FileFilterUtils.notFileFilter(DirectoryFileFilter.INSTANCE));
}
- //-----------------------------------------------------------------------
/**
* Returns the size of the specified file or directory. If the provided
* {@link File} is a regular file, then the file's length is returned.
@@ -2771,7 +2753,6 @@ private static BigInteger sizeOfDirectoryBig0(final File directory) {
return size;
}
- //-----------------------------------------------------------------------
/**
* Convert from a <code>URL</code> to a <code>File</code>.
* <p>
@@ -2835,7 +2816,6 @@ public static File toFile(final URL url) {
return files;
}
- //-----------------------------------------------------------------------
/**
* Converts an array of file extensions to suffixes for use
* with IOFileFilters.
@@ -2851,7 +2831,6 @@ public static File toFile(final URL url) {
return suffixes;
}
- //-----------------------------------------------------------------------
/**
* Implements the same behavior as the "touch" utility on Unix. It creates
* a new file with size 0 or, if the file exists already, it is opened and
@@ -2958,7 +2937,6 @@ private static void validateMoveParameters(final File source, final File destina
return files;
}
- //-----------------------------------------------------------------------
/**
* Waits for NFS to propagate a file creation, imposing a timeout.
* <p>

Remove //-- spacers.