当前位置: 首页>>代码示例>>Java>>正文


Java Project.getSuppressionFilter方法代码示例

本文整理汇总了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)
}
 
开发者ID:ytus,项目名称:findbugs-all-the-bugs,代码行数:23,代码来源:Filter.java

示例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);
}
 
开发者ID:ytus,项目名称:findbugs-all-the-bugs,代码行数:9,代码来源:MainFrame.java

示例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);
}
 
开发者ID:ytus,项目名称:findbugs-all-the-bugs,代码行数:9,代码来源:MainFrame.java


注:本文中的edu.umd.cs.findbugs.Project.getSuppressionFilter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。