Package edu.hm.hafner.analysis
Class IssueDifference
- java.lang.Object
-
- edu.hm.hafner.analysis.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 Summary
Constructors Constructor Description IssueDifference(Report currentIssues, String referenceId, Report referenceIssues)Creates a new instance ofIssueDifference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportgetFixedIssues()Returns the fixed issues.ReportgetNewIssues()Returns the new issues.ReportgetOutstandingIssues()Returns the outstanding issues.
-
-
-
Constructor Detail
-
IssueDifference
public IssueDifference(Report currentIssues, String referenceId, Report referenceIssues)
Creates a new instance ofIssueDifference.- Parameters:
currentIssues- the issues of the current reportreferenceId- ID identifying the reference reportreferenceIssues- 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
-
-