Package edu.umd.cs.findbugs.workflow
Class Update
- java.lang.Object
-
- edu.umd.cs.findbugs.workflow.Update
-
public class Update extends java.lang.Object
Java main application to compute update a historical bug collection with results from another build/analysis.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Update.MatchOldBugs
(package private) class
Update.UpdateCommandLine
-
Field Summary
Fields Modifier and Type Field Description (package private) static boolean
doMatchFixedBugs
(package private) VersionInsensitiveBugComparator
fuzzyBugPatternMatcher
private java.util.Map<BugInstance,BugInstance>
mapFromNewToOldBug
private java.util.Map<BugInstance,java.lang.Void>
matchedOldBugs
(package private) int
maxRank
(package private) static int
maxResurrection
(package private) int
mostRecent
(package private) boolean
noPackageMoves
(package private) boolean
noResurrections
(package private) boolean
preciseMatch
(package private) boolean
precisePriorityMatch
private java.util.Set<java.lang.String>
resurrected
(package private) boolean
sloppyMatch
private static java.lang.String
USAGE
(package private) boolean
useAnalysisTimes
(package private) boolean
verbose
(package private) VersionInsensitiveBugComparator
versionInsensitiveBugComparator
-
Constructor Summary
Constructors Constructor Description Update()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
discardUnwantedBugs(BugCollection newCollection)
void
doit(java.lang.String[] args)
static java.lang.String[]
getFilePathParts(java.lang.String filePath)
private static int
lengthCommonPrefix(java.lang.String[] string, java.lang.String[] string2)
static void
main(java.lang.String[] args)
private void
matchBugs(BugCollection origCollection, BugCollection newCollection)
private void
matchBugs(java.util.Comparator<BugInstance> bugInstanceComparator, BugCollection origCollection, BugCollection newCollection)
private void
matchBugs(java.util.Comparator<BugInstance> bugInstanceComparator, BugCollection origCollection, BugCollection newCollection, Update.MatchOldBugs matchOld)
private static void
mergeBugHistory(BugInstance older, BugInstance newer)
BugCollection
mergeCollections(BugCollection origCollection, BugCollection newCollection, boolean copyDeadBugs, boolean incrementalAnalysis)
void
removeBaselineBugs(BugCollection baselineCollection, BugCollection bugCollection)
(package private) java.util.HashSet<java.lang.String>
sourceFilesInCollection(BugCollection collection)
-
-
-
Field Detail
-
doMatchFixedBugs
static final boolean doMatchFixedBugs
-
maxResurrection
static final int maxResurrection
-
USAGE
private static final java.lang.String USAGE
-
mapFromNewToOldBug
private final java.util.Map<BugInstance,BugInstance> mapFromNewToOldBug
-
resurrected
private final java.util.Set<java.lang.String> resurrected
-
matchedOldBugs
private final java.util.Map<BugInstance,java.lang.Void> matchedOldBugs
-
noPackageMoves
boolean noPackageMoves
-
useAnalysisTimes
boolean useAnalysisTimes
-
noResurrections
boolean noResurrections
-
preciseMatch
boolean preciseMatch
-
sloppyMatch
boolean sloppyMatch
-
precisePriorityMatch
boolean precisePriorityMatch
-
mostRecent
int mostRecent
-
maxRank
int maxRank
-
versionInsensitiveBugComparator
VersionInsensitiveBugComparator versionInsensitiveBugComparator
-
fuzzyBugPatternMatcher
VersionInsensitiveBugComparator fuzzyBugPatternMatcher
-
verbose
boolean verbose
-
-
Method Detail
-
sourceFilesInCollection
java.util.HashSet<java.lang.String> sourceFilesInCollection(BugCollection collection)
-
removeBaselineBugs
public void removeBaselineBugs(BugCollection baselineCollection, BugCollection bugCollection)
-
mergeCollections
public BugCollection mergeCollections(BugCollection origCollection, BugCollection newCollection, boolean copyDeadBugs, boolean incrementalAnalysis)
-
discardUnwantedBugs
private void discardUnwantedBugs(BugCollection newCollection)
- Parameters:
newCollection
-
-
matchBugs
private void matchBugs(BugCollection origCollection, BugCollection newCollection)
-
getFilePathParts
public static java.lang.String[] getFilePathParts(java.lang.String filePath)
-
main
public static void main(java.lang.String[] args) throws java.io.IOException, org.dom4j.DocumentException
- Throws:
java.io.IOException
org.dom4j.DocumentException
-
doit
public void doit(java.lang.String[] args) throws java.io.IOException, org.dom4j.DocumentException
- Throws:
java.io.IOException
org.dom4j.DocumentException
-
lengthCommonPrefix
private static int lengthCommonPrefix(java.lang.String[] string, java.lang.String[] string2)
-
mergeBugHistory
private static void mergeBugHistory(BugInstance older, BugInstance newer)
-
matchBugs
private void matchBugs(java.util.Comparator<BugInstance> bugInstanceComparator, BugCollection origCollection, BugCollection newCollection)
-
matchBugs
private void matchBugs(java.util.Comparator<BugInstance> bugInstanceComparator, BugCollection origCollection, BugCollection newCollection, Update.MatchOldBugs matchOld)
-
-