⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checkreturnvalue.java

📁 一个查找java程序里bug的程序的源代码,该程序本身也是java写的,对提高java编程水平很有用
💻 JAVA
字号:
package edu.umd.cs.findbugs.annotations;import java.lang.annotation.*;import java.lang.annotation.ElementType;import static java.lang.annotation.ElementType.*;@Documented@Target({METHOD, CONSTRUCTOR})@Retention(RetentionPolicy.CLASS)/** * This annotation is used to denote a method whose return value * should always be checked when invoking the method. *  * The checker treats this annotation as inherited by overriding methods. */public @interface CheckReturnValue {    String priority() default "medium";    /**     * A textual explaination of why the return value should be checked     */    String explanation() default "";    /**     * A value indicating whether or not the return value should be checked.     *     * The only reason to use anything other than the default is if you are     * overriding a method that notes that its return value should be checked,     * but your return value doesn't need to be checked.     */    boolean check() default true;}

⌨️ 快捷键说明

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