Package edu.umd.cs.findbugs
Class BugCounts
- java.lang.Object
-
- edu.umd.cs.findbugs.BugCounts
-
- Direct Known Subclasses:
PackageStats,PackageStats.ClassStats
class BugCounts extends java.lang.ObjectClass to store package bug statistics.
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]nBugs
-
Constructor Summary
Constructors Constructor Description BugCounts()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(BugInstance bug)voidclearBugCounts()protected voidensureNonnullBugCounts()intgetBugsAtPriority(int p)intgetTotalBugs()voidwriteBugPriorities(XMLOutput xmlOutput)Add priority attributes to a started tag.static voidwriteBugPriorities(XMLOutput xmlOutput, int[] nBugs)
-
-
-
Method Detail
-
addError
@OverridingMethodsMustInvokeSuper public void addError(BugInstance bug)
-
ensureNonnullBugCounts
protected void ensureNonnullBugCounts()
-
getTotalBugs
public final int getTotalBugs()
-
getBugsAtPriority
public final int getBugsAtPriority(int p)
-
clearBugCounts
public void clearBugCounts()
-
writeBugPriorities
public void writeBugPriorities(XMLOutput xmlOutput) throws java.io.IOException
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:
java.io.IOException
-
writeBugPriorities
public static void writeBugPriorities(XMLOutput xmlOutput, @Nonnull int[] nBugs) throws java.io.IOException
- Throws:
java.io.IOException
-
-