methodwarningsuppressor.java
来自「一个查找java程序里bug的程序的源代码,该程序本身也是java写的,对提高j」· Java 代码 · 共 26 行
JAVA
26 行
package edu.umd.cs.findbugs;public class MethodWarningSuppressor extends ClassWarningSuppressor { MethodAnnotation method; public MethodWarningSuppressor(String bugPattern, ClassAnnotation clazz, MethodAnnotation method) { super(bugPattern, clazz); this.method = method; } public boolean match(BugInstance bugInstance) { if (!super.match(bugInstance)) return false; MethodAnnotation bugMethod = bugInstance.getPrimaryMethod(); if (bugMethod != null && !method.equals(bugMethod)) return false; if (DEBUG) System.out.println("Suppressing " + bugInstance); return true; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?