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
public class ErrorCountingBugReporter extends DelegatingBugReporter
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 Constructor Description ErrorCountingBugReporter(BugReporter realBugReporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBugCount()intgetErrorCount()intgetMissingClassCount()voidlogError(java.lang.String message)Log an error that occurs while performing analysis.voidreportMissingClass(java.lang.ClassNotFoundException ex)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 Detail
-
ErrorCountingBugReporter
public ErrorCountingBugReporter(BugReporter realBugReporter)
-
-
Method Detail
-
getBugCount
public int getBugCount()
-
getMissingClassCount
public int getMissingClassCount()
-
getErrorCount
public int getErrorCount()
-
logError
public void logError(java.lang.String message)
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
public void reportMissingClass(java.lang.ClassNotFoundException ex)
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
-
-