Package edu.umd.cs.findbugs.workflow
Class BugHistory
- java.lang.Object
-
- edu.umd.cs.findbugs.workflow.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BugHistory.SetOperation
Deprecated.A set operation between two bug collections.
-
Field Summary
Fields Modifier and Type Field Description static BugHistory.SetOperation
ADDED_WARNINGS
Deprecated.Get the warnings which were added, meaning that they were not part of the original BugCollection.static 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.static BugHistory.SetOperation
RETAINED_WARNINGS
Deprecated.Get the warnings which were retained, meaning that they occur in both the original and new BugCollections.
-
Constructor Summary
Constructors Constructor Description BugHistory(SortedBugCollection origCollection, SortedBugCollection newCollection)
Deprecated.Contructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description WarningComparator
getComparator()
Deprecated.Get the Comparator used to compare BugInstances from different BugCollections.SortedBugCollection
getNewCollection()
Deprecated.SortedBugCollection
getOrigCollection()
Deprecated.SortedBugCollection
getOriginator()
Deprecated.SortedBugCollection
getResultCollection()
Deprecated.static void
main(java.lang.String[] argv)
Deprecated.SortedBugCollection
performSetOperation(BugHistory.SetOperation operation)
Deprecated.Perform a SetOperation.void
setComparator(WarningComparator comparator)
Deprecated.void
writeResultCollection(Project origProject, Project newProject, java.io.OutputStream outputStream)
Deprecated.
-
-
-
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 BugCollectionnewCollection
- 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
-
-