Annotation Type NotThreadSafe


  • @Documented
    @Target(TYPE)
    @Retention(RUNTIME)
    public @interface NotThreadSafe
    The presence of this annotation indicates that the author believes the class is not thread-safe. The absence of this annotation does not indicate that the class is thread-safe, instead this annotation is for cases where a naïve assumption could be easily made that the class is thread-safe. In general, it is a bad plan to assume a class is thread safe without good reason.