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,ConfigurableBugReporter
public class PrintingBugReporter extends TextUIBugReporter
A simple BugReporter which simply prints the formatted message to the output stream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classPrintingBugReporter.PrintingCommandLine-
Nested classes/interfaces inherited from class edu.umd.cs.findbugs.AbstractBugReporter
AbstractBugReporter.Error
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashSet<BugInstance>seenAlready-
Fields inherited from class edu.umd.cs.findbugs.TextUIBugReporter
OTHER_CATEGORY_ABBREV, outputStream
-
Fields inherited from interface edu.umd.cs.findbugs.BugReporter
NORMAL, SILENT
-
-
Constructor Summary
Constructors Constructor Description PrintingBugReporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoReportBug(BugInstance bugInstance)Subclasses must override this.voidfinish()Finish reporting bugs.@Nullable BugCollectiongetBugCollection()Get the bug collection (if any) associated with this bug reporterstatic voidmain(java.lang.String[] args)voidobserveClass(ClassDescriptor classDescriptor)Observe a class being visited.static voidxslt(java.lang.String stylesheet, boolean applySuppression, java.lang.String[] args, int argCount)-
Methods inherited from class edu.umd.cs.findbugs.TextUIBugReporter
checkBugInstance, emitLine, getOutputTarget, getRealBugReporter, getUseLongBugCodes, isApplySuppressions, isDuplicateOf, printBug, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setOutputTarget, setReportHistory, setReportStackTrace, setShowRank, setUseLongBugCodes, setWriter
-
Methods inherited from class edu.umd.cs.findbugs.AbstractBugReporter
addObserver, getMissingClasses, getMissingClassName, getPriorityAdjuster, getProjectStats, getQueuedErrors, isRelaxed, isValidMissingClassMessage, logError, logError, notifyObservers, reportBug, reportBugsFromXml, reportMissingClass, reportMissingClass, reportSkippedAnalysis, setErrorVerbosity, setIsRelaxed, setPriorityAdjuster, 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, getPriorityAdjuster, getProjectStats, reportBug, setErrorVerbosity, setPriorityAdjuster, setPriorityThreshold
-
Methods inherited from interface edu.umd.cs.findbugs.ConfigurableBugReporter
setRankThreshold
-
Methods inherited from interface edu.umd.cs.findbugs.classfile.IErrorLogger
logError, logError, reportMissingClass, reportMissingClass, reportMissingClass, reportSkippedAnalysis
-
-
-
-
Field Detail
-
seenAlready
private final java.util.HashSet<BugInstance> seenAlready
-
-
Method Detail
-
observeClass
public void observeClass(ClassDescriptor classDescriptor)
Description copied from interface:IClassObserverObserve a class being visited.- Parameters:
classDescriptor- class being visited
-
doReportBug
protected void doReportBug(BugInstance bugInstance)
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
-
finish
public void finish()
Description copied from interface:BugReporterFinish reporting bugs. If any bug reports have been queued, calling this method will flush them.
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
xslt
public static void xslt(java.lang.String stylesheet, boolean applySuppression, java.lang.String[] args, int argCount) throws java.lang.Exception- Throws:
java.lang.Exception
-
getBugCollection
public @Nullable BugCollection getBugCollection()
Description copied from interface:BugReporterGet the bug collection (if any) associated with this bug reporter
-
-