Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0-alpha4
-
Reviewed
Description
There are many places that follow the pattern:
try { lock.lock(); ... } finally { lock.unlock(); }
There are a couple of reasons that's a bad idea. The correct pattern is:
lock.lock(); try { ... } finally { lock.unlock(); }