Updated Commit for hasNoIssues
Removed Instance check and updated to check size of all issues, not just warnings.
@@ -208,15 +208,13 @@ public class JobAction implements Action, AsyncTrendChart {
public boolean hasNoIssues() {
History results =createBuildHistory(); //Get past build history
- if(results instanceof AnalysisHistory){
Iterator<BuildResult<AnalysisBuildResult>> it = results.iterator();
while(it.hasNext()) {
BuildResult<AnalysisBuildResult> nextResult = it.next();
- if(nextResult.getResult().getTotalSize() - nextResult.getResult().getTotalSizeOf(Severity.ERROR) != 0){
+ if(nextResult.getResult().getTotalSize() != 0){
return false;
}
}
- }
return true;
}
