Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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.