Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-724

FileUtils.deleteDirectory javadoc is inaccurate for nonexistent directory

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.0
    • 2.11.0
    • Utilities
    • None

    Description

      FileUtils.deleteDirectory javadoc claims:

      @throws IllegalArgumentException if {@code directory} does not exist or is not a directory

      but the first two lines of the code are:

      Objects.requireNonNull(directory, "directory");
      if (!directory.exists()) {
          return;
      }

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            henryptung Henry Tung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 20m
                2h 20m

                Slack

                  Issue deployment