1 package javax.annotation.concurrent; 2 3 import java.lang.annotation.Documented; 4 import java.lang.annotation.ElementType; 5 import java.lang.annotation.Retention; 6 import java.lang.annotation.RetentionPolicy; 7 import 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) 21 public @interface ThreadSafe { 22 } 23