Details
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(); }
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(); }