Skip to content

Commit 4fcca15

Browse files
committed
Add missing Javadoc for org.apache.commons.io.FileUtils.checkDirectory(File)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1349306 13f79535-47bb-0310-9956-ffa450edef68
1 parent c395904 commit 4fcca15

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2521,11 +2521,16 @@ public static BigInteger sizeOfDirectoryAsBigInteger(File directory) {
25212521
return size;
25222522
}
25232523

2524+
/**
2525+
* Checks that the given {@code File} exists and is a directory.
2526+
*
2527+
* @param directory The {@code File} to check.
2528+
* @throws IllegalArgumentException if the given {@code File} does not exist or is not a directory.
2529+
*/
25242530
private static void checkDirectory(File directory) {
25252531
if (!directory.exists()) {
25262532
throw new IllegalArgumentException(directory + " does not exist");
25272533
}
2528-
25292534
if (!directory.isDirectory()) {
25302535
throw new IllegalArgumentException(directory + " is not a directory");
25312536
}

0 commit comments

Comments
 (0)