Class BugHistory


  • @Deprecated
    public class BugHistory
    extends java.lang.Object
    Deprecated.
    Analyze bug results to find new, fixed, and retained bugs between versions of the same program. Uses VersionInsensitiveBugComparator (or FuzzyBugComparator) to determine when two BugInstances are the "same". The new BugCollection returned is a deep copy of one of the input collections (depending on the operation performed), with only a subset of the original BugInstances retained. Because it is a deep copy, it may be freely modified.
    Author:
    David Hovemeyer
    • Field Detail

      • ADDED_WARNINGS

        public static final BugHistory.SetOperation ADDED_WARNINGS
        Deprecated.
        Get the warnings which were added, meaning that they were not part of the original BugCollection. The BugInstances returned are from the new BugCollection.
      • RETAINED_WARNINGS

        public static final BugHistory.SetOperation RETAINED_WARNINGS
        Deprecated.
        Get the warnings which were retained, meaning that they occur in both the original and new BugCollections. The BugInstances returned are from the new BugCollection.
      • REMOVED_WARNINGS

        public static final BugHistory.SetOperation REMOVED_WARNINGS
        Deprecated.
        Get the warnings which were removed, meaning that they occur in the original BugCollection but not in the new BugCollection. The BugInstances returned are from the original BugCollection.
    • Constructor Detail

      • BugHistory

        public BugHistory​(SortedBugCollection origCollection,
                          SortedBugCollection newCollection)
        Deprecated.
        Contructor.
        Parameters:
        origCollection - the original BugCollection
        newCollection - the new BugCollection
    • Method Detail

      • getComparator

        public WarningComparator getComparator()
        Deprecated.
        Get the Comparator used to compare BugInstances from different BugCollections.
      • setComparator

        public void setComparator​(WarningComparator comparator)
        Deprecated.
        Parameters:
        comparator - The comparator to set.
      • performSetOperation

        public SortedBugCollection performSetOperation​(BugHistory.SetOperation operation)
        Deprecated.
        Perform a SetOperation.
        Parameters:
        operation - the SetOperation
        Returns:
        the BugCollection resulting from performing the SetOperation
      • getOriginator

        public SortedBugCollection getOriginator()
        Deprecated.
        Returns:
        Returns the originator.
      • getOrigCollection

        public SortedBugCollection getOrigCollection()
        Deprecated.
        Returns:
        Returns the origCollection.
      • getNewCollection

        public SortedBugCollection getNewCollection()
        Deprecated.
        Returns:
        Returns the newCollection.
      • getResultCollection

        public SortedBugCollection getResultCollection()
        Deprecated.
        Returns:
        Returns the result.
      • writeResultCollection

        public void writeResultCollection​(Project origProject,
                                          Project newProject,
                                          java.io.OutputStream outputStream)
                                   throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] argv)
                         throws java.lang.Exception
        Deprecated.
        Throws:
        java.lang.Exception