Package edu.umd.cs.findbugs
Class SloppyBugComparator
- java.lang.Object
-
- edu.umd.cs.findbugs.SloppyBugComparator
-
- All Implemented Interfaces:
WarningComparator
,java.util.Comparator<BugInstance>
public class SloppyBugComparator extends java.lang.Object implements WarningComparator
Very sloppy bug comparator: if the warnings are of the same type, and in the same class/method/field, assume they are the same.- Author:
- David Hovemeyer
-
-
Constructor Summary
Constructors Constructor Description SloppyBugComparator()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(BugInstance lhs, BugInstance rhs)
void
setClassNameRewriter(ClassNameRewriter classNameRewriter)
-
-
-
Method Detail
-
setClassNameRewriter
public void setClassNameRewriter(ClassNameRewriter classNameRewriter)
- Specified by:
setClassNameRewriter
in interfaceWarningComparator
- Parameters:
classNameRewriter
- The classNameRewriter to set.
-
compare
public int compare(BugInstance lhs, BugInstance rhs)
- Specified by:
compare
in interfacejava.util.Comparator<BugInstance>
- Specified by:
compare
in interfaceWarningComparator
-
-