KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > jcip > annotations > NotThreadSafe


1
2 package net.jcip.annotations;
3
4 import java.lang.annotation.*;
5
6 /*
7  * Copyright (c) 2005 Brian Goetz
8  * Released under the Creative Commons Attribution License
9  * (http://creativecommons.org/licenses/by/2.5)
10  * Official home: http://www.jcip.net
11  */

12
13 /**
14  * NotThreadSafe
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.CLASS)
25 public @interface NotThreadSafe {
26 }
27
Popular Tags