All Downloads are FREE. Search and download functionalities are using the official Maven repository.

resources.report.rules.findbugs.JLM_JSR166_UTILCONCURRENT_MONITORENTER.html Maven / Gradle / Ivy



JLM_JSR166_UTILCONCURRENT_MONITORENTER

JLM: Synchronization performed on util.concurrent instance (JLM_JSR166_UTILCONCURRENT_MONITORENTER)

This method performs synchronization an object that is an instance of a class from the java.util.concurrent package (or its subclasses). Instances of these classes have their own concurrency control mechanisms that are orthogonal to the synchronization provided by the Java keyword synchronized. For example, synchronizing on an AtomicBoolean will not prevent other threads from modifying the AtomicBoolean.

Such code may be correct, but should be carefully reviewed and documented, and may confuse people who have to maintain the code at a later date.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy