Program: 47980
Project: 47980
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.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;
}

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<>();
  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;
}