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

FileUtils.deleteDirectory javadoc is inaccurate for nonexistent directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.11.0
    • Component/s: Utilities
    • Labels:
      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

            People

            • Assignee:
              Unassigned
              Reporter:
              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