Indicates that the annotated element should be used only while holding the specified lock.
Use this annotation on any static or field that will be initialized lazily, where races yield no semantic difference in the code (as, for example, is the case with
The method to which this annotation is applied acquires one or more locks.
The method to which this annotation is applied releases one or more locks.
Copyright © 2019. All rights reserved.