public class FuzzyBugComparator extends java.lang.Object implements WarningComparator
BugInstance
,
VersionInsensitiveBugComparator
,
Serialized FormConstructor and Description |
---|
FuzzyBugComparator()
Map of class hashes to canonicate class names used for comparison
purposes.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(BugInstance lhs,
BugInstance rhs) |
int |
compareClasses(BugCollection lhsCollection,
BugCollection rhsCollection,
ClassAnnotation lhsClass,
ClassAnnotation rhsClass) |
int |
compareClassesByName(BugCollection lhsCollection,
BugCollection rhsCollection,
java.lang.String lhsClassName,
java.lang.String rhsClassName) |
int |
compareMethods(BugCollection lhsCollection,
BugCollection rhsCollection,
MethodAnnotation lhsMethod,
MethodAnnotation rhsMethod) |
int |
compareSourceLines(BugCollection lhsCollection,
BugCollection rhsCollection,
SourceLineAnnotation lhs,
SourceLineAnnotation rhs)
Compare source line annotations.
|
static boolean |
ignore(BugAnnotation annotation) |
void |
registerBugCollection(BugCollection bugCollection)
Register a BugCollection.
|
void |
setClassNameRewriter(ClassNameRewriter classNameRewriter) |
public FuzzyBugComparator()
public void registerBugCollection(BugCollection bugCollection)
bugCollection
- a BugCollectionpublic void setClassNameRewriter(ClassNameRewriter classNameRewriter)
setClassNameRewriter
in interface WarningComparator
public int compare(BugInstance lhs, BugInstance rhs)
compare
in interface WarningComparator
compare
in interface java.util.Comparator<BugInstance>
public int compareClasses(BugCollection lhsCollection, BugCollection rhsCollection, ClassAnnotation lhsClass, ClassAnnotation rhsClass)
public int compareClassesByName(BugCollection lhsCollection, BugCollection rhsCollection, java.lang.String lhsClassName, java.lang.String rhsClassName)
public int compareMethods(BugCollection lhsCollection, BugCollection rhsCollection, MethodAnnotation lhsMethod, MethodAnnotation rhsMethod)
public int compareSourceLines(BugCollection lhsCollection, BugCollection rhsCollection, SourceLineAnnotation lhs, SourceLineAnnotation rhs)
rhsCollection
- lhs BugCollectionlhsCollection
- rhs BugCollectionlhs
- a SourceLineAnnotationrhs
- another SourceLineAnnotationpublic static boolean ignore(BugAnnotation annotation)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.