[
https://issues.apache.org/jira/browse/GEODE-6023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bruce Schuchardt resolved GEODE-6023.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.8.0
Fixed as part of this commit:
Commit 3b2ff449f057c20166470c41da07aa274d2ae2ad in geode's branch
refs/heads/develop from Bruce Schuchardt
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=3b2ff44 ]
GEODE-3416 Reduce synchronization blockages in SocketCreator
Fixing LGTM complaint about synch on auto-boxed variable
> 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
> Fix For: 1.8.0
>
>
> 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)