@synchronized
will automatically take down its exception-handling context when you return, and relinquish the lock. So the code you’ve written is fine.
@synchronized
will automatically take down its exception-handling context when you return, and relinquish the lock. So the code you’ve written is fine.