edu.umd.cs.findbugs
Class SortingBugReporter

java.lang.Object
  extended by edu.umd.cs.findbugs.AbstractBugReporter
      extended by edu.umd.cs.findbugs.TextUIBugReporter
          extended by edu.umd.cs.findbugs.SortingBugReporter
All Implemented Interfaces:
ClassObserver, RepositoryLookupFailureCallback, BugReporter

public class SortingBugReporter
extends TextUIBugReporter

A BugReporter which stores all of the reported bug instances, and sorts them by class name before printing them.


Field Summary
private  SortedBugCollection bugCollection
           
 
Fields inherited from class edu.umd.cs.findbugs.TextUIBugReporter
outputStream
 
Fields inherited from interface edu.umd.cs.findbugs.BugReporter
NORMAL, SILENT
 
Constructor Summary
SortingBugReporter()
           
 
Method Summary
 void doReportBug(BugInstance bugInstance)
          Subclasses must override this.
 void finish()
          Finish reporting bugs.
 void observeClass(org.apache.bcel.classfile.JavaClass javaClass)
          Observe a class.
 
Methods inherited from class edu.umd.cs.findbugs.TextUIBugReporter
beginReport, endReport, printBug, reportLine, setOutputStream
 
Methods inherited from class edu.umd.cs.findbugs.AbstractBugReporter
addObserver, getEngine, getMissingClassName, getProjectStats, logError, notifyObservers, reportBug, reportMissingClass, reportQueuedErrors, setEngine, setErrorVerbosity, setPriorityThreshold
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bugCollection

private SortedBugCollection bugCollection
Constructor Detail

SortingBugReporter

public SortingBugReporter()
Method Detail

observeClass

public void observeClass(org.apache.bcel.classfile.JavaClass javaClass)
Description copied from interface: ClassObserver
Observe a class.

Parameters:
javaClass - the class

doReportBug

public void doReportBug(BugInstance bugInstance)
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 class AbstractBugReporter

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.