本文整理汇总了Java中edu.umd.cs.findbugs.Project.getSuppressionFilter方法的典型用法代码示例。如果您正苦于以下问题:Java Project.getSuppressionFilter方法的具体用法?Java Project.getSuppressionFilter怎么用?Java Project.getSuppressionFilter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类edu.umd.cs.findbugs.Project
的用法示例。
在下文中一共展示了Project.getSuppressionFilter方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: adjustFilter
import edu.umd.cs.findbugs.Project; //导入方法依赖的package包/类
void adjustFilter(Project project, BugCollection collection) {
suppressionFilter = project.getSuppressionFilter();
if (maxAgeSpecified) {
minFirstSeen = collection.getAnalysisTimestamp() - maxAge * MILLISECONDS_PER_DAY;
}
first = getVersionNum(collection, firstAsString, true);
maybeMutated = getVersionNum(collection, maybeMutatedAsString, true);
last = getVersionNum(collection, lastAsString, true);
before = getVersionNum(collection, beforeAsString, true);
after = getVersionNum(collection, afterAsString, false);
present = getVersionNum(collection, presentAsString, true);
absent = getVersionNum(collection, absentAsString, true);
if (sloppyUniqueSpecified)
uniqueSloppy = new TreeSet<BugInstance>(new SloppyBugComparator());
long fixed = getVersionNum(collection, fixedAsString, true);
if (fixed >= 0)
last = fixed - 1; // fixed means last on previous sequence (ok
// if -1)
}
示例2: shouldDisplayIssue
import edu.umd.cs.findbugs.Project; //导入方法依赖的package包/类
@SuppressWarnings({ "SimplifiableIfStatement" })
boolean shouldDisplayIssue(BugInstance b) {
Project project = getProject();
Filter suppressionFilter = project.getSuppressionFilter();
if (null == getBugCollection() || suppressionFilter.match(b))
return false;
return viewFilter.show(b);
}
示例3: shouldDisplayIssueIgnoringPackagePrefixes
import edu.umd.cs.findbugs.Project; //导入方法依赖的package包/类
@SuppressWarnings({ "SimplifiableIfStatement" })
private boolean shouldDisplayIssueIgnoringPackagePrefixes(BugInstance b) {
Project project = getProject();
Filter suppressionFilter = project.getSuppressionFilter();
if (null == getBugCollection() || suppressionFilter.match(b))
return false;
return viewFilter.showIgnoringPackagePrefixes(b);
}