Skip to content

Commit 5c1a230

Browse files
authored
IO-724 deleteDirectory exception javadoc inaccurate update (#245)
* IO-724 deleteDirectory exception javadoc update FileUtils.deleteDirectory javadoc is inaccurate for nonexistent directory * Remove NullPointerException from javadoc Remove NullPointerException from javadoc as future annotation may comes to place * Update condition
1 parent b8690c0 commit 5c1a230

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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 IllegalArgumentException if {@code directory} is not a directory
11841184
*/
11851185
public static void deleteDirectory(final File directory) throws IOException {
11861186
Objects.requireNonNull(directory, "directory");

0 commit comments

Comments
 (0)