Class BugCollectionBugReporter

    • Constructor Detail

      • BugCollectionBugReporter

        public BugCollectionBugReporter​(Project project)
      • BugCollectionBugReporter

        public BugCollectionBugReporter​(Project project,
                                        @CheckForNull
                                        java.io.PrintWriter writer)
    • Method Detail

      • getProject

        public Project getProject()
      • logError

        public void logError​(java.lang.String message)
        Description copied from interface: IErrorLogger
        Log an error that occurs while performing analysis.
        Specified by:
        logError in interface IErrorLogger
        Overrides:
        logError in class AbstractBugReporter
        Parameters:
        message - the error message
      • logError

        public void logError​(java.lang.String message,
                             java.lang.Throwable e)
        Description copied from interface: IErrorLogger
        Log an error that occurs while performing analysis.
        Specified by:
        logError in interface IErrorLogger
        Overrides:
        logError in class AbstractBugReporter
        Parameters:
        message - the error message
        e - the exception which is the underlying cause of the error
      • 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
        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.
        Specified by:
        finish in interface BugReporter
      • emitLine

        protected void emitLine​(java.lang.String line)
        Emit one line of the error message report. By default, error messages are printed to System.err. Subclasses may override.
        Overrides:
        emitLine in class TextUIBugReporter
        Parameters:
        line - one line of the error report