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

AbstractDualBidiMap<K, V> has several mutable protected fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-alpha1, 4.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: