Skip to content

Commit

Permalink
IO-724 deleteDirectory exception javadoc inaccurate update (#245)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
liran2000 authored Jun 22, 2021
1 parent b8690c0 commit 5c1a230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/io/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ public static File delete(final File file) throws IOException {
*
* @param directory directory to delete
* @throws IOException in case deletion is unsuccessful
* @throws IllegalArgumentException if {@code directory} does not exist or is not a directory
* @throws IllegalArgumentException if {@code directory} is not a directory
*/
public static void deleteDirectory(final File directory) throws IOException {
Objects.requireNonNull(directory, "directory");
Expand Down

0 comments on commit 5c1a230

Please sign in to comment.