@Documented
@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface NotThreadSafe
This annotation denotes that the annotated type is not thread-safe. On the
contrary, if any type is not annotated with this annotation, does not
necessarily indicate that the type in consideration is thread-safe. The
motive of this annotation is to inform consumers of the annotated type that
consumers must not make any abrupt assumption that the type is thread-safe.
If the author of the type believes that the consumer can make such
assumptions of thread-safety for types even though the types are not, it is
better to annotate the type with this annotation.
- Since:
- 1.2