SynchronizedVerifier

A utility class that allows to verify access to a resource is synchronized.

Methods
static void check(Object o)
Verify the object is not accessed concurrently.
static void check(Object o)
Verify the object is not accessed concurrently.
Parameters:
o - the object
static void setDetect(Class clazz, boolean value)
Enable or disable detection for a given class.
static void setDetect(Class clazz, boolean value)
Enable or disable detection for a given class.
Parameters:
clazz - the class
value - the new value (true means detection is enabled)