Package 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
A delegating bug reporter which counts reported bug instances, missing
classes, and serious analysis errors.
-
Field Summary
Fields inherited from interface edu.umd.cs.findbugs.BugReporter
NORMAL, SILENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
void
Log an error that occurs while performing analysis.void
Called to report a class lookup failure.Methods inherited from class edu.umd.cs.findbugs.DelegatingBugReporter
addObserver, finish, getBugCollection, getDelegate, getProjectStats, logError, observeClass, reportBug, reportMissingClass, reportQueuedErrors, reportSkippedAnalysis, setErrorVerbosity, setPriorityThreshold
-
Constructor Details
-
ErrorCountingBugReporter
-
-
Method Details
-
getBugCount
public int getBugCount() -
getMissingClassCount
public int getMissingClassCount() -
getErrorCount
public int getErrorCount() -
logError
Description copied from interface:IErrorLogger
Log an error that occurs while performing analysis.- Specified by:
logError
in interfaceIErrorLogger
- Overrides:
logError
in classDelegatingBugReporter
- Parameters:
message
- the error message
-
reportMissingClass
Description copied from interface:IErrorLogger
Called to report a class lookup failure.- Specified by:
reportMissingClass
in interfaceIErrorLogger
- Overrides:
reportMissingClass
in classDelegatingBugReporter
- Parameters:
ex
- a ClassNotFoundException resulting from the class lookup failure
-