Skip to content

Commit b7002bc

Browse files
authored
IO-724 deleteDirectory exception javadoc update
FileUtils.deleteDirectory javadoc is inaccurate for nonexistent directory
1 parent ff02373 commit b7002bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ public static File delete(final File file) throws IOException {
11801180
*
11811181
* @param directory directory to delete
11821182
* @throws IOException in case deletion is unsuccessful
1183-
* @throws IllegalArgumentException if {@code directory} does not exist or is not a directory
1183+
* @throws NullPointerException - if {@code directory} is null
11841184
*/
11851185
public static void deleteDirectory(final File directory) throws IOException {
11861186
Objects.requireNonNull(directory, "directory");

0 commit comments

Comments
 (0)