We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 508f466 commit 3278b1bCopy full SHA for 3278b1b
1 file changed
src/main/java/org/apache/commons/io/FileUtils.java
@@ -461,6 +461,16 @@ public static Collection<File> listFiles(
461
return files;
462
}
463
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
+ */
474
private static void validateListFilesParameters(File directory, IOFileFilter fileFilter) {
475
if (!directory.isDirectory()) {
476
throw new IllegalArgumentException("Parameter 'directory' is not a directory");
0 commit comments