use of edu.umd.cs.findbugs.filter.Filter in project spotbugs by spotbugs.
the class MainFrame method shouldDisplayIssueIgnoringPackagePrefixes.
// @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);
}
use of edu.umd.cs.findbugs.filter.Filter in project spotbugs by spotbugs.
the class BugLoader method addDeadBugMatcher.
static void addDeadBugMatcher(BugCollection bugCollection) {
if (bugCollection == null || !bugCollection.hasDeadBugs()) {
return;
}
Filter suppressionMatcher = bugCollection.getProject().getSuppressionFilter();
suppressionMatcher.softAdd(LastVersionMatcher.DEAD_BUG_MATCHER);
}
Aggregations