1package javax.annotation.concurrent; 2 3import java.lang.annotation.Documented; 4import java.lang.annotation.ElementType; 5import java.lang.annotation.Retention; 6import java.lang.annotation.RetentionPolicy; 7import java.lang.annotation.Target; 8 9/** 10 * ThreadSafe 11 * 12 * The class to which this annotation is applied is thread-safe. This means that 13 * no sequences of accesses (reads and writes to public fields, calls to public 14 * methods) may put the object into an invalid state, regardless of the 15 * interleaving of those actions by the runtime, and without requiring any 16 * additional synchronization or coordination on the part of the caller. 17 */ 18@Documented 19@Target(ElementType.TYPE) 20@Retention(RetentionPolicy.CLASS) 21public @interface ThreadSafe { 22} 23