edu.umd.cs.findbugs
Class FindBugs.ErrorCountingBugReporter
java.lang.Object
edu.umd.cs.findbugs.DelegatingBugReporter
edu.umd.cs.findbugs.FindBugs.ErrorCountingBugReporter
- All Implemented Interfaces:
- ClassObserver, RepositoryLookupFailureCallback, BugReporter
- Enclosing class:
- FindBugs
private static class FindBugs.ErrorCountingBugReporter
- extends DelegatingBugReporter
A delegating bug reporter which counts reported bug instances,
missing classes, and serious analysis errors.
Methods inherited from class edu.umd.cs.findbugs.DelegatingBugReporter |
addObserver, finish, getProjectStats, getRealBugReporter, observeClass, reportBug, reportQueuedErrors, setEngine, setErrorVerbosity, setPriorityThreshold, setRealBugReporter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bugCount
private int bugCount
missingClassCount
private int missingClassCount
errorCount
private int errorCount
missingClassSet
private java.util.Set<java.lang.String> missingClassSet
FindBugs.ErrorCountingBugReporter
public FindBugs.ErrorCountingBugReporter(BugReporter realBugReporter)
getBugCount
public int getBugCount()
getMissingClassCount
public int getMissingClassCount()
getErrorCount
public int getErrorCount()
logError
public void logError(java.lang.String message)
- Description copied from interface:
BugReporter
- Log an error that occurs while looking for bugs.
- Specified by:
logError
in interface BugReporter
- Overrides:
logError
in class DelegatingBugReporter
- Parameters:
message
- the error message
reportMissingClass
public void reportMissingClass(java.lang.ClassNotFoundException ex)
- Description copied from interface:
RepositoryLookupFailureCallback
- Called to report a lookup failure.
- Specified by:
reportMissingClass
in interface RepositoryLookupFailureCallback
- Overrides:
reportMissingClass
in class DelegatingBugReporter
- Parameters:
ex
- a ClassNotFoundException resulting from the failure