01: package net.jcip.annotations;
02:
03: import java.lang.annotation.Documented;
04: import java.lang.annotation.ElementType;
05: import java.lang.annotation.Retention;
06: import java.lang.annotation.RetentionPolicy;
07: import java.lang.annotation.Target;
08:
09: /*
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.
20: * This 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 is a bad
22: * idea to assume a class is thread-safe without good reason.
23: * @see ThreadSafe
24: */
25: @Documented
26: @Target(ElementType.TYPE)
27: @Retention(RetentionPolicy.CLASS)
28: public @interface NotThreadSafe {
29: }
|