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

Make fields final so classes are immutable/threadsafe

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.2
    • 1.4
    • Filters
    • None

    Description

      There are quite a few fields which are only set up in constructors.

      These could be made final so the classes can be immutable, and therefore thread-safe.

      Patch to follow.

      Note: some of the current filters cannot be made thread-safe this way.

      Attachments

        1. filefilter.patch
          14 kB
          Sebb

        Activity

          People

            niallp Niall Pemberton
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: