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

Make fields final so classes are immutable/threadsafe

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.4
    • Component/s: Filters
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: