Uploaded image for project: 'Commons Pool'
  1. Commons Pool
  2. POOL-198

LinkedBlockingDeque has some non-private fields, and a package-protected internal method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      None

      Description

      LinkedBlockingDeque has non-private mutable fields first, last and lock - these should be private.

      Also the method void unlink(Node<E> x) is package-protected; it should be private unless there's a very good reason to allow it to be accessed/overridden externally - in which case it the locking conditions need to be documented.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: