Program: 48005
Project: 48005
Buggy source:
/** 
 * @return A map which represents coverage objects and their status to show on build status page (summary.jelly).
 */
public Map<Coverage,Boolean> getCoverageRatios(){
  CoverageReport result=getResult();
  Map<Coverage,Boolean> ratios=new LinkedHashMap<Coverage,Boolean>();
  if (result != null) {
    Coverage instructionCoverage=result.getInstructionCoverage();
    Coverage classCoverage=result.getClassCoverage();
    Coverage complexityScore=result.getComplexityScore();
    Coverage branchCoverage=result.getBranchCoverage();
    Coverage lineCoverage=result.getLineCoverage();
    Coverage methodCoverage=result.getMethodCoverage();
    instructionCoverage.setType(CoverageElement.Type.INSTRUCTION);
    classCoverage.setType(CoverageElement.Type.CLASS);
    complexityScore.setType(CoverageElement.Type.COMPLEXITY);
    branchCoverage.setType(CoverageElement.Type.BRANCH);
    lineCoverage.setType(CoverageElement.Type.LINE);
    methodCoverage.setType(CoverageElement.Type.METHOD);
    ratios.put(instructionCoverage,JacocoHealthReportThresholds.RESULT.BELLOWMINIMUM == thresholds.getResultByTypeAndRatio(instructionCoverage));
    ratios.put(branchCoverage,JacocoHealthReportThresholds.RESULT.BELLOWMINIMUM == thresholds.getResultByTypeAndRatio(branchCoverage));
    ratios.put(complexityScore,JacocoHealthReportThresholds.RESULT.BELLOWMINIMUM == thresholds.getResultByTypeAndRatio(complexityScore));
    ratios.put(lineCoverage,JacocoHealthReportThresholds.RESULT.BELLOWMINIMUM == thresholds.getResultByTypeAndRatio(lineCoverage));
    ratios.put(methodCoverage,JacocoHealthReportThresholds.RESULT.BELLOWMINIMUM == thresholds.getResultByTypeAndRatio(methodCoverage));
    ratios.put(classCoverage,JacocoHealthReportThresholds.RESULT.BELLOWMINIMUM == thresholds.getResultByTypeAndRatio(classCoverage));
  }
  return ratios;
}

Fixed version (ground truth):
/** 
 * @return A map which represents coverage objects and their status to show on build status page (summary.jelly).
 */
public Map<Coverage,Boolean> getCoverageRatios(){
  CoverageReport result=getResult();
  Map<Coverage,Boolean> ratios=new LinkedHashMap<Coverage,Boolean>();
  if (result != null) {
    Coverage instructionCoverage=result.getInstructionCoverage();
    Coverage classCoverage=result.getClassCoverage();
    Coverage complexityScore=result.getComplexityScore();
    Coverage branchCoverage=result.getBranchCoverage();
    Coverage lineCoverage=result.getLineCoverage();
    Coverage methodCoverage=result.getMethodCoverage();
    instructionCoverage.setType(CoverageElement.Type.INSTRUCTION);
    classCoverage.setType(CoverageElement.Type.CLASS);
    complexityScore.setType(CoverageElement.Type.COMPLEXITY);
    branchCoverage.setType(CoverageElement.Type.BRANCH);
    lineCoverage.setType(CoverageElement.Type.LINE);
    methodCoverage.setType(CoverageElement.Type.METHOD);
    ratios.put(instructionCoverage,JacocoHealthReportThresholds.RESULT.BELOWMINIMUM == thresholds.getResultByTypeAndRatio(instructionCoverage));
    ratios.put(branchCoverage,JacocoHealthReportThresholds.RESULT.BELOWMINIMUM == thresholds.getResultByTypeAndRatio(branchCoverage));
    ratios.put(complexityScore,JacocoHealthReportThresholds.RESULT.BELOWMINIMUM == thresholds.getResultByTypeAndRatio(complexityScore));
    ratios.put(lineCoverage,JacocoHealthReportThresholds.RESULT.BELOWMINIMUM == thresholds.getResultByTypeAndRatio(lineCoverage));
    ratios.put(methodCoverage,JacocoHealthReportThresholds.RESULT.BELOWMINIMUM == thresholds.getResultByTypeAndRatio(methodCoverage));
    ratios.put(classCoverage,JacocoHealthReportThresholds.RESULT.BELOWMINIMUM == thresholds.getResultByTypeAndRatio(classCoverage));
  }
  return ratios;
}