You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2021/06/22 17:19:00 UTC
[jira] [Resolved] (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:all-tabpanel ]
Gary D. Gregory resolved IO-724.
--------------------------------
Fix Version/s: 2.10.1
Resolution: Fixed
> 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
> Fix For: 2.10.1
>
> Time Spent: 2h 20m
> Remaining Estimate: 0h
>
> 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)