notthreadsafe.java

来自「A static analysis tool to find bugs in J」· Java 代码 · 共 27 行

JAVA
27
字号
package net.jcip.annotations;import java.lang.annotation.*;/* * Copyright (c) 2005 Brian Goetz * Released under the Creative Commons Attribution License *   (http://creativecommons.org/licenses/by/2.5) * Official home: http://www.jcip.net *//** * NotThreadSafe * * The class to which this annotation is applied is not thread-safe. * This annotation primarily exists for clarifying the non-thread-safety of a class * that might otherwise be assumed to be thread-safe, despite the fact that it is a bad * idea to assume a class is thread-safe without good reason.   * @see ThreadSafe */@Documented@Target(ElementType.TYPE)@Retention(RetentionPolicy.CLASS)public @interface NotThreadSafe {}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?