Package edu.umd.cs.findbugs
Class XDocsBugReporter
java.lang.Object
edu.umd.cs.findbugs.AbstractBugReporter
edu.umd.cs.findbugs.TextUIBugReporter
edu.umd.cs.findbugs.XDocsBugReporter
- All Implemented Interfaces:
RepositoryLookupFailureCallback,BugReporter,IClassObserver,IErrorLogger
BugReporter to output warnings in xdocs format for Maven.
- Author:
- Garvin LeClaire
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.umd.cs.findbugs.AbstractBugReporter
AbstractBugReporter.Error -
Field Summary
Fields inherited from class edu.umd.cs.findbugs.TextUIBugReporter
outputStreamFields inherited from interface edu.umd.cs.findbugs.BugReporter
NORMAL, SILENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoReportBug(BugInstance bugInstance) Subclasses must override this.voidfinish()Finish reporting bugs.Get the bug collection (if any) associated with this bug reportervoidLog an error that occurs while performing analysis.voidobserveClass(ClassDescriptor classDescriptor) Observe a class being visited.protected voidprintBug(BugInstance bugInstance) Print bug in one-line format.voidCalled to report a class lookup failure.voidtoElement(BugInstance bugInstance) Methods inherited from class edu.umd.cs.findbugs.TextUIBugReporter
checkBugInstance, emitLine, getRealBugReporter, getUseLongBugCodes, isApplySuppressions, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setReportHistory, setReportStackTrace, setReportUserDesignations, setShowRank, setUseLongBugCodes, setWriterMethods inherited from class edu.umd.cs.findbugs.AbstractBugReporter
addObserver, getMissingClasses, getMissingClassName, getProjectStats, getQueuedErrors, isRelaxed, isValidMissingClassMessage, logError, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setIsRelaxed, setPriorityThreshold, setRankThreshold
-
Constructor Details
-
XDocsBugReporter
-
-
Method Details
-
observeClass
Description copied from interface:IClassObserverObserve a class being visited.- Parameters:
classDescriptor- class being visited
-
logError
Description copied from interface:IErrorLoggerLog an error that occurs while performing analysis.- Specified by:
logErrorin interfaceIErrorLogger- Overrides:
logErrorin classAbstractBugReporter- Parameters:
message- the error message
-
reportMissingClass
Description copied from interface:IErrorLoggerCalled to report a class lookup failure.- Specified by:
reportMissingClassin interfaceIErrorLogger- Overrides:
reportMissingClassin classAbstractBugReporter- Parameters:
ex- a ClassNotFoundException resulting from the class lookup failure
-
doReportBug
Description copied from class:AbstractBugReporterSubclasses must override this. It will be called only for bugs which meet the priority threshold.- Specified by:
doReportBugin classAbstractBugReporter- Parameters:
bugInstance- the bug to report
-
printBug
Description copied from class:TextUIBugReporterPrint bug in one-line format.- Overrides:
printBugin classTextUIBugReporter- Parameters:
bugInstance- the bug to print
-
finish
public void finish()Description copied from interface:BugReporterFinish reporting bugs. If any bug reports have been queued, calling this method will flush them. -
toElement
-
getBugCollection
Description copied from interface:BugReporterGet the bug collection (if any) associated with this bug reporter
-