Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-6023

synchronization on non-final variable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • membership
    • None

    Description

      The class SocketCloser synchronizes on a non-final boxed instance variable, "closed".

          synchronized (closed) {
            if (!this.closed) {
              this.closed = true;
            } else {
              return;
            }
          }
      

      This is probably okay but it's flagged as an ERROR by LGTM scans and we shouldn't be using auto-boxed variables in non-test code.

      Attachments

        Activity

          People

            bschuchardt Bruce J Schuchardt
            bschuchardt Bruce J Schuchardt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: