01: package net.jcip.annotations;
02:
03: import java.lang.annotation.*;
04:
05: /*
06: * Copyright (c) 2005 Brian Goetz and Tim Peierls
07: * Released under the Creative Commons Attribution License
08: * (http://creativecommons.org/licenses/by/2.5)
09: * Official home: http://www.jcip.net
10: *
11: * Any republication or derived work distributed in source code form
12: * must include this copyright and license notice.
13: */
14:
15: /**
16: * The class to which this annotation is applied is not thread-safe.
17: * This annotation primarily exists for clarifying the non-thread-safety of a class
18: * that might otherwise be assumed to be thread-safe, despite the fact that it is a bad
19: * idea to assume a class is thread-safe without good reason.
20: * @see ThreadSafe
21: */
22: @Documented
23: @Target(ElementType.TYPE)
24: @Retention(RetentionPolicy.RUNTIME)
25: public @interface NotThreadSafe {
26: }
|