Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-455

AbstractDualBidiMap<K, V> has several mutable protected fields

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-alpha1, 4.0
    • Component/s: None
    • Labels:
      None

      Description

      Any non-private mutable fields make it much harder to ensure thread-safety as well as making it very difficult to test thoroughly.

      The fields should be made private.
      If protected write access really is needed, setter methods should be used.
      These methods can take any necessary precautions to ensure thread-safety.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: