You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/06/14 07:53:01 UTC

[jira] [Work logged] (IO-724) FileUtils.deleteDirectory javadoc is inaccurate for nonexistent directory

     [ https://issues.apache.org/jira/browse/IO-724?focusedWorklogId=610449&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-610449 ]

ASF GitHub Bot logged work on IO-724:
-------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Jun/21 07:52
            Start Date: 14/Jun/21 07:52
    Worklog Time Spent: 10m 
      Work Description: liran2000 opened a new pull request #245:
URL: https://github.com/apache/commons-io/pull/245


   FileUtils.deleteDirectory javadoc is inaccurate for nonexistent directory.
   
   Change for returned exception javadoc, as the conditions at the method implementation do not match the javadoc.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 610449)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>          Time Spent: 10m
>  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)