Please refer to the following code snippet(stripped off the redundant part to highlight the problematic case):
FindBugs is complaining that "Method does not release lock on all paths" . Is this a false positive? If not, how to fix this?
try{
someLock.lock();
//do something
} finally{
if (someLock.isLocked())
someLock.unlock();
}