Class BugCounts
java.lang.Object
edu.umd.cs.findbugs.BugCounts
- Direct Known Subclasses:
PackageStats, PackageStats.ClassStats
Class to store package bug statistics.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(BugInstance bug) voidprotected voidfinal intgetBugsAtPriority(int p) final intvoidwriteBugPriorities(XMLOutput xmlOutput) Add priority attributes to a started tag.static voidwriteBugPriorities(XMLOutput xmlOutput, int[] nBugs)
-
Field Details
-
nBugs
protected int[] nBugs
-
-
Constructor Details
-
BugCounts
BugCounts()
-
-
Method Details
-
addError
-
ensureNonnullBugCounts
protected void ensureNonnullBugCounts() -
getTotalBugs
public final int getTotalBugs() -
getBugsAtPriority
public final int getBugsAtPriority(int p) -
clearBugCounts
public void clearBugCounts() -
writeBugPriorities
Add priority attributes to a started tag. Each priority at offset n, where n > 0, is output using attribute priority_n if the value at offset n is greater than zero.- Parameters:
xmlOutput- an output stream for which startTag has been called but stopTag has not.- Throws:
IOException
-
writeBugPriorities
- Throws:
IOException
-