edu.umd.cs.findbugs
Class ErrorCountingBugReporter
java.lang.Object
edu.umd.cs.findbugs.DelegatingBugReporter
edu.umd.cs.findbugs.ErrorCountingBugReporter
- All Implemented Interfaces:
- RepositoryLookupFailureCallback, BugReporter, IClassObserver, IErrorLogger
public class 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, getDelegate, getProjectStats, getRealBugReporter, logError, observeClass, reportBug, reportMissingClass, reportQueuedErrors, reportSkippedAnalysis, setDelegate, setErrorVerbosity, setPriorityThreshold |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorCountingBugReporter
public 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:
IErrorLogger
- Log an error that occurs while performing analysis.
- Specified by:
logError
in interface IErrorLogger
- Overrides:
logError
in class DelegatingBugReporter
- Parameters:
message
- the error message
reportMissingClass
public void reportMissingClass(java.lang.ClassNotFoundException ex)
- Description copied from interface:
IErrorLogger
- Called to report a class lookup failure.
- Specified by:
reportMissingClass
in interface IErrorLogger
- Overrides:
reportMissingClass
in class DelegatingBugReporter
- Parameters:
ex
- a ClassNotFoundException resulting from the class lookup failure
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.