[ https://issues.apache.org/jira/browse/GEODE-6023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruce Schuchardt reassigned GEODE-6023: --------------------------------------- Assignee: Bruce Schuchardt > synchronization on non-final variable > ------------------------------------- > > Key: GEODE-6023 > URL: https://issues.apache.org/jira/browse/GEODE-6023 > Project: Geode > Issue Type: Bug > Components: membership > Reporter: Bruce Schuchardt > Assignee: Bruce Schuchardt > Priority: Major > > The class SocketCloser synchronizes on a non-final boxed instance variable, > "closed". > {code} > synchronized (closed) { > if (!this.closed) { > this.closed = true; > } else { > return; > } > } > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)