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

FileUtils.deleteDirectory javadoc is inaccurate for nonexistent directory

    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

          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