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 * Copyright (c) 2005 Brian Goetz 11 * Released under the Creative Commons Attribution License 12 * (http://creativecommons.org/licenses/by/2.5) 13 * Official home: http://www.jcip.net 14 */ 15 16/** 17 * NotThreadSafe 18 * 19 * The class to which this annotation is applied is not thread-safe. This 20 * annotation primarily exists for clarifying the non-thread-safety of a class 21 * that might otherwise be assumed to be thread-safe, despite the fact that it 22 * is a bad idea to assume a class is thread-safe without good reason. 23 * 24 * @see ThreadSafe 25 */ 26@Documented 27@Target(ElementType.TYPE) 28@Retention(RetentionPolicy.CLASS) 29public @interface NotThreadSafe { 30} 31