Class IssueDifference


  • public class IssueDifference
    extends Object
    Computes old, new, and fixed issues based on the reports of two consecutive static analysis runs for the same software artifact.
    Author:
    Ullrich Hafner
    • Constructor Detail

      • IssueDifference

        public IssueDifference​(Report currentIssues,
                               String referenceId,
                               Report referenceIssues)
        Creates a new instance of IssueDifference.
        Parameters:
        currentIssues - the issues of the current report
        referenceId - ID identifying the reference report
        referenceIssues - the issues of a previous report (reference)
    • Method Detail

      • getOutstandingIssues

        public Report getOutstandingIssues()
        Returns the outstanding issues. I.e. all issues, that are part of the previous report and that are still part of the current report.
        Returns:
        the outstanding issues
      • getNewIssues

        public Report getNewIssues()
        Returns the new issues. I.e. all issues, that are part of the current report but that have not been shown up in the previous report.
        Returns:
        the new issues
      • getFixedIssues

        public Report getFixedIssues()
        Returns the fixed issues. I.e. all issues, that are part of the previous report but that are not present in the current report anymore.
        Returns:
        the fixed issues