Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-404

Mutable fields should be private

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • None

    Description

      Non-private mutable fields make thread-safety harder.

      Make all mutable fields private (or at worst package-protected), and use getters/setters for access if necessary.

      This allows synchronisation to be easily added later if necessary, as well as potentially allowing validation of values.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: