Skip to content

Commit 3278b1b

Browse files
committed
Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1299796 13f79535-47bb-0310-9956-ffa450edef68
1 parent 508f466 commit 3278b1b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,16 @@ public static Collection<File> listFiles(
461461
return files;
462462
}
463463

464+
/**
465+
* Validates the given arguments.
466+
* <ul>
467+
* <li>Throws {@link IllegalArgumentException} if {@code directory} is not a directory</li>
468+
* <li>Throws {@link NullPointerException} if {@code fileFilter} is null</li>
469+
* </ul>
470+
*
471+
* @param directory The File to test
472+
* @param fileFilter The IOFileFilter to test
473+
*/
464474
private static void validateListFilesParameters(File directory, IOFileFilter fileFilter) {
465475
if (!directory.isDirectory()) {
466476
throw new IllegalArgumentException("Parameter 'directory' is not a directory");

0 commit comments

Comments
 (0)