In that case, it best to synchronized rather than locks. Code stays cleaner and more concise.