From e313a622d41034ec601cf823656c0ae0cddce029 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 14 Nov 2024 11:01:28 -0500 Subject: [PATCH] Javadoc --- src/main/java/org/apache/commons/io/FileUtils.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/io/FileUtils.java b/src/main/java/org/apache/commons/io/FileUtils.java index b3f19f2418e..9b5bcd0b33d 100644 --- a/src/main/java/org/apache/commons/io/FileUtils.java +++ b/src/main/java/org/apache/commons/io/FileUtils.java @@ -2295,12 +2295,14 @@ private static AccumulatorPathVisitor listAccumulate(final File directory, final /** * Lists files in a directory, asserting that the supplied directory exists and is a directory. * - * @param directory The directory to list. + * @param directory The directory to list. * @param fileFilter Optional file filter, may be null. * @return The files in the directory, never {@code null}. - * @throws NullPointerException if directory is {@code null}. - * @throws IllegalArgumentException if {@link directory} exists but is not a directory. - * @throws IOException if an I/O error occurs. + * @throws NullPointerException if the {@code directory} is {@code null}. + * @throws IllegalArgumentException if the {@code directory} exists but is not a directory. + * @throws IOException if an I/O error occurs per {@link File#listFiles()} and {@link File#listFiles(FileFilter)}. + * @throws SecurityException If a security manager exists and its {@link SecurityManager#checkRead(String)} method denies read access to the + * directory. */ private static File[] listFiles(final File directory, final FileFilter fileFilter) throws IOException { requireDirectoryExists(directory, "directory");