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

Replace static FileCleaner methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.3.1
    • 1.3.2
    • Utilities
    • None

    Description

      The attached patch aims to finally resolve the problems, which are named in IO-99, FILEUPLOAD-120, and FILEUPLOAD-125.

      I choosed a conservative strategy: Basically I copied the FileCleaner class to an instantiable class FileCleaningTracker with instance methods. The static FileCleaner methods are now implemented by a static instance of FileCleaningTracker. (The name FileCleaningTracker is, of course, questionable.

      The FileCleaningTestCase was also created by simply copying FileCleaner to FileCleaningTestCase. FileCleanerTestCase is now similarly implemented as a subclass of FileCleanerTestCase which uses the static instance of FileCleaner rather than a dynamically created instance.

      Attachments

        1. commons-io-filecleaningtracker.patch
          43 kB
          Jochen Wiedmann
        2. commons-io-filecleaningtracker.patch
          43 kB
          Jochen Wiedmann

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jochen@apache.org Jochen Wiedmann
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: