Class PrintingBugReporter

All Implemented Interfaces:
RepositoryLookupFailureCallback, BugReporter, IClassObserver, IErrorLogger

public class PrintingBugReporter extends TextUIBugReporter
A simple BugReporter which simply prints the formatted message to the output stream.
  • Constructor Details

    • PrintingBugReporter

      public PrintingBugReporter()
  • Method Details

    • observeClass

      public void observeClass(ClassDescriptor classDescriptor)
      Description copied from interface: IClassObserver
      Observe a class being visited.
      Parameters:
      classDescriptor - class being visited
    • doReportBug

      protected 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
      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

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • xslt

      public static void xslt(String stylesheet, boolean applySuppression, String[] args, int argCount) throws Exception
      Throws:
      Exception
    • getBugCollection

      @CheckForNull public BugCollection getBugCollection()
      Description copied from interface: BugReporter
      Get the bug collection (if any) associated with this bug reporter
    • setRankThreshold

      void setRankThreshold(int threshold)