You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Liran Mendelovich (Jira)" <ji...@apache.org> on 2021/06/13 13:10:00 UTC
[jira] [Commented] (IO-724) FileUtils.deleteDirectory javadoc is
inaccurate for nonexistent directory
[ https://issues.apache.org/jira/browse/IO-724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17362539#comment-17362539 ]
Liran Mendelovich commented on IO-724:
--------------------------------------
Opened [PR|https://github.com/apache/commons-io/pull/245]
> FileUtils.deleteDirectory javadoc is inaccurate for nonexistent directory
> -------------------------------------------------------------------------
>
> Key: IO-724
> URL: https://issues.apache.org/jira/browse/IO-724
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.8.0
> Reporter: Henry Tung
> Priority: Minor
>
> FileUtils.deleteDirectory javadoc claims:
> {code:java}
> @throws IllegalArgumentException if {@code directory} does not exist or is not a directory{code}
> but the first two lines of the code are:
> {code:java}
> Objects.requireNonNull(directory, "directory");
> if (!directory.exists()) {
> return;
> }{code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)