void () { final Lock lock = new ReentrantLock(); <warning descr="'Lock' should be locked in front of a 'try' block and unlocked in the corresponding 'finally' block">lock.lock()</warning>; lock.unlock(); }