Class FuzzyBugComparator

  • All Implemented Interfaces:
    WarningComparator, java.io.Serializable, java.util.Comparator<BugInstance>

    public class FuzzyBugComparator
    extends java.lang.Object
    implements WarningComparator
    A slightly more intellegent way of comparing BugInstances from two versions to see if they are the "same". Uses class and method hashes to try to handle renamings, at least for simple cases. (Hashes disabled for the time being.) Uses opcode context to try to identify code that is the same, even if it moves within the method. Also compares by bug abbreviation rather than bug type, since the "same" bug can change type if the context changes (e.g., "definitely null" to "null on simple path" for a null pointer dereference). Also, we often change bug types between different versions of FindBugs.
    Author:
    David Hovemeyer
    See Also:
    BugInstance, VersionInsensitiveBugComparator, Serialized Form