本文整理汇总了Java中edu.umd.cs.findbugs.filter.FilterException类的典型用法代码示例。如果您正苦于以下问题:Java FilterException类的具体用法?Java FilterException怎么用?Java FilterException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FilterException类属于edu.umd.cs.findbugs.filter包,在下文中一共展示了FilterException类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addFilter
import edu.umd.cs.findbugs.filter.FilterException; //导入依赖的package包/类
public void addFilter(String filterFileName, boolean include) throws IOException, FilterException {
bugReporter = FindBugs.configureFilter(bugReporter, filterFileName, include);
}
示例2: addFilter
import edu.umd.cs.findbugs.filter.FilterException; //导入依赖的package包/类
@Override
public void addFilter(String filterFileName, boolean include) throws IOException, FilterException {
bugReporter = FindBugs.configureFilter(bugReporter, filterFileName, include);
}
示例3: configureFilter
import edu.umd.cs.findbugs.filter.FilterException; //导入依赖的package包/类
/**
* Configure the (bug instance) Filter for the given DelegatingBugReporter.
*
* @param bugReporter
* a DelegatingBugReporter
* @param filterFileName
* filter file name
* @param include
* true if the filter is an include filter, false if it's an
* exclude filter
* @throws java.io.IOException
* @throws edu.umd.cs.findbugs.filter.FilterException
*/
public static BugReporter configureFilter(BugReporter bugReporter, String filterFileName, boolean include)
throws IOException, FilterException {
Filter filter = new Filter(filterFileName);
return new FilterBugReporter(bugReporter, filter, include);
}
示例4: addFilter
import edu.umd.cs.findbugs.filter.FilterException; //导入依赖的package包/类
/**
* Set filter of bug instances to include or exclude.
*
* @param filterFileName
* the name of the filter file
* @param include
* true if the filter specifies bug instances to include, false
* if it specifies bug instances to exclude
*/
public void addFilter(String filterFileName, boolean include) throws IOException, FilterException;