Package edu.umd.cs.findbugs
Class SortingBugReporter
- java.lang.Object
-
- edu.umd.cs.findbugs.AbstractBugReporter
-
- edu.umd.cs.findbugs.TextUIBugReporter
-
- edu.umd.cs.findbugs.SortingBugReporter
-
- All Implemented Interfaces:
RepositoryLookupFailureCallback,BugReporter,IClassObserver,IErrorLogger
public class SortingBugReporter extends TextUIBugReporter
A BugReporter which stores all of the reported bug instances, and sorts them by class name before printing them.
-
-
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 Constructor Description SortingBugReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoReportBug(BugInstance bugInstance)Subclasses must override this.voidfinish()Finish reporting bugs.BugCollectiongetBugCollection()Get the bug collection (if any) associated with this bug reportervoidobserveClass(ClassDescriptor classDescriptor)Observe a class being visited.-
Methods inherited from class edu.umd.cs.findbugs.TextUIBugReporter
checkBugInstance, emitLine, getRealBugReporter, getUseLongBugCodes, isApplySuppressions, printBug, reportAnalysisError, reportMissingClass, reportQueuedErrors, setApplySuppressions, setOutputStream, setReportHistory, setReportStackTrace, setReportUserDesignations, 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
-
-
-
-
Method Detail
-
observeClass
public void observeClass(ClassDescriptor classDescriptor)
Description copied from interface:IClassObserverObserve a class being visited.- Parameters:
classDescriptor- class being visited
-
doReportBug
public 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.
-
getBugCollection
@Nonnull public BugCollection getBugCollection()
Description copied from interface:BugReporterGet the bug collection (if any) associated with this bug reporter
-
-