Package edu.umd.cs.findbugs
Class PrintingBugReporter
java.lang.Object
edu.umd.cs.findbugs.AbstractBugReporter
edu.umd.cs.findbugs.TextUIBugReporter
edu.umd.cs.findbugs.PrintingBugReporter
- All Implemented Interfaces:
RepositoryLookupFailureCallback
,BugReporter
,IClassObserver
,IErrorLogger
A simple BugReporter which simply prints the formatted message to the output
stream.
-
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
outputStream
Fields inherited from interface edu.umd.cs.findbugs.BugReporter
NORMAL, SILENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doReportBug
(BugInstance bugInstance) Subclasses must override this.void
finish()
Finish reporting bugs.Get the bug collection (if any) associated with this bug reporterstatic void
void
observeClass
(ClassDescriptor classDescriptor) Observe a class being visited.void
setRankThreshold
(int threshold) static void
Methods inherited from class edu.umd.cs.findbugs.TextUIBugReporter
checkBugInstance, emitLine, getRealBugReporter, getUseLongBugCodes, isApplySuppressions, printBug, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setReportHistory, setReportStackTrace, setShowRank, setUseLongBugCodes, setWriter
Methods inherited from class edu.umd.cs.findbugs.AbstractBugReporter
addObserver, getMissingClasses, getMissingClassName, getProjectStats, getQueuedErrors, isRelaxed, isValidMissingClassMessage, logError, logError, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setIsRelaxed, setPriorityThreshold, setRankThreshold
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.umd.cs.findbugs.BugReporter
addObserver, getProjectStats, reportBug, setErrorVerbosity, setPriorityThreshold
Methods inherited from interface edu.umd.cs.findbugs.classfile.IErrorLogger
logError, logError, reportMissingClass, reportMissingClass, reportSkippedAnalysis
-
Constructor Details
-
PrintingBugReporter
public PrintingBugReporter()
-
-
Method Details
-
observeClass
Description copied from interface:IClassObserver
Observe a class being visited.- Parameters:
classDescriptor
- class being visited
-
doReportBug
Description copied from class:AbstractBugReporter
Subclasses must override this. It will be called only for bugs which meet the priority threshold.- Specified by:
doReportBug
in classAbstractBugReporter
- Parameters:
bugInstance
- the bug to report
-
finish
public void finish()Description copied from interface:BugReporter
Finish reporting bugs. If any bug reports have been queued, calling this method will flush them. -
main
- Throws:
Exception
-
xslt
public static void xslt(String stylesheet, boolean applySuppression, String[] args, int argCount) throws Exception - Throws:
Exception
-
getBugCollection
Description copied from interface:BugReporter
Get the bug collection (if any) associated with this bug reporter -
setRankThreshold
void setRankThreshold(int threshold)
-