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
FieldsModifier and TypeFieldDescriptionprivate intFields inherited from interface BugReporter
NORMAL, SILENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintvoidLog an error that occurs while performing analysis.voidreportMissingClass(ClassDescriptor classDescriptor) Called to report a class lookup failure.voidCalled to report a class lookup failure.Methods inherited from class DelegatingBugReporter
addObserver, finish, getBugCollection, getDelegate, getPriorityAdjuster, getProjectStats, logError, observeClass, reportBug, reportQueuedErrors, reportSkippedAnalysis, setErrorVerbosity, setPriorityAdjuster, setPriorityThresholdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IErrorLogger
reportMissingClass
-
Field Details
-
bugCount
private int bugCount -
errors
-
missingClassSet
-
-
Constructor Details
-
ErrorCountingBugReporter
-
-
Method Details
-
getBugCount
public int getBugCount() -
getMissingClassCount
public int getMissingClassCount() -
getErrorCount
public int getErrorCount() -
logError
Description copied from interface:IErrorLoggerLog an error that occurs while performing analysis.- Specified by:
logErrorin interfaceIErrorLogger- Overrides:
logErrorin classDelegatingBugReporter- Parameters:
message- the error message
-
reportMissingClass
Description copied from interface:IErrorLoggerCalled to report a class lookup failure.- Specified by:
reportMissingClassin interfaceIErrorLogger- Overrides:
reportMissingClassin classDelegatingBugReporter- Parameters:
ex- a ClassNotFoundException resulting from the class lookup failure
-
reportMissingClass
Description copied from interface:IErrorLoggerCalled to report a class lookup failure.- Specified by:
reportMissingClassin interfaceIErrorLogger- Overrides:
reportMissingClassin classDelegatingBugReporter- Parameters:
classDescriptor- ClassDescriptor of a missing class
-