Class SloppyBugComparator
java.lang.Object
edu.umd.cs.findbugs.SloppyBugComparator
- All Implemented Interfaces:
WarningComparator, Serializable, Comparator<BugInstance>
Very sloppy bug comparator: if the warnings are of the same type, and in the
same class/method/field, assume they are the same.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(BugInstance lhs, BugInstance rhs) private intCompare class annotations.private intprivate intprivate intcompareNullElements(Object lhs, Object rhs) private FieldAnnotationconvertField(FieldAnnotation fieldAnnotation) private MethodAnnotationconvertMethod(MethodAnnotation methodAnnotation) voidsetClassNameRewriter(ClassNameRewriter classNameRewriter) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
DEBUG
private static final boolean DEBUG -
classNameRewriter
-
-
Constructor Details
-
SloppyBugComparator
public SloppyBugComparator()
-
-
Method Details
-
setClassNameRewriter
- Specified by:
setClassNameRewriterin interfaceWarningComparator
-
compareNullElements
-
compareClassesAllowingNull
Compare class annotations.- Parameters:
lhs- left hand class annotationrhs- right hand class annotation- Returns:
- comparison of the class annotations
-
compareMethodsAllowingNull
-
compareFieldsAllowingNull
-
convertMethod
-
convertField
-
compare
- Specified by:
comparein interfaceComparator<BugInstance>- Specified by:
comparein interfaceWarningComparator
-