Program: 77079
Project: 77079
Buggy source:
/** 
 * Creates Report default styles
 */
protected void createReportDefaultStyles(StyleHandle handle){
  nonInheritableReportStyle=new StyleDeclaration(cssEngine);
  inheritableReportStyle=new StyleDeclaration(cssEngine);
  addReportDefaultPropertyValue(Style.BACKGROUND_COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.BACKGROUND_IMAGE_PROP,handle);
  addReportDefaultPropertyValue(Style.BACKGROUND_POSITION_X_PROP,handle);
  addReportDefaultPropertyValue(Style.BACKGROUND_POSITION_Y_PROP,handle);
  addReportDefaultPropertyValue(Style.BACKGROUND_REPEAT_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_ALIGN_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_INDENT_PROP,handle);
  addReportDefaultPropertyValue(Style.LETTER_SPACING_PROP,handle);
  addReportDefaultPropertyValue(Style.LINE_HEIGHT_PROP,handle);
  addReportDefaultPropertyValue(Style.ORPHANS_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_TRANSFORM_PROP,handle);
  addReportDefaultPropertyValue(Style.VERTICAL_ALIGN_PROP,handle);
  addReportDefaultPropertyValue(Style.WHITE_SPACE_PROP,handle);
  addReportDefaultPropertyValue(Style.WIDOWS_PROP,handle);
  addReportDefaultPropertyValue(Style.WORD_SPACING_PROP,handle);
  addReportDefaultPropertyValue(Style.DISPLAY_PROP,handle);
  addReportDefaultPropertyValue(Style.MASTER_PAGE_PROP,handle);
  addReportDefaultPropertyValue(Style.PAGE_BREAK_AFTER_PROP,handle);
  addReportDefaultPropertyValue(Style.PAGE_BREAK_BEFORE_PROP,handle);
  addReportDefaultPropertyValue(Style.PAGE_BREAK_INSIDE_PROP,handle);
  addReportDefaultPropertyValue(Style.FONT_FAMILY_PROP,handle);
  addReportDefaultPropertyValue(Style.COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.FONT_SIZE_PROP,handle);
  addReportDefaultPropertyValue(Style.FONT_STYLE_PROP,handle);
  addReportDefaultPropertyValue(Style.FONT_WEIGHT_PROP,handle);
  addReportDefaultPropertyValue(Style.FONT_VARIANT_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_LINE_THROUGH_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_OVERLINE_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_UNDERLINE_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_BOTTOM_COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.BORDER_BOTTOM_STYLE_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_BOTTOM_WIDTH_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_LEFT_COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.BORDER_LEFT_STYLE_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_LEFT_WIDTH_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_RIGHT_COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.BORDER_RIGHT_STYLE_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_RIGHT_WIDTH_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_TOP_COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.BORDER_TOP_STYLE_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_TOP_WIDTH_PROP,handle);
  addReportDefaultPropertyValue(Style.MARGIN_TOP_PROP,handle);
  addReportDefaultPropertyValue(Style.MARGIN_LEFT_PROP,handle);
  addReportDefaultPropertyValue(Style.MARGIN_BOTTOM_PROP,handle);
  addReportDefaultPropertyValue(Style.MARGIN_RIGHT_PROP,handle);
  addReportDefaultPropertyValue(Style.PADDING_TOP_PROP,handle);
  addReportDefaultPropertyValue(Style.PADDING_LEFT_PROP,handle);
  addReportDefaultPropertyValue(Style.PADDING_BOTTOM_PROP,handle);
  addReportDefaultPropertyValue(Style.PADDING_RIGHT_PROP,handle);
  report.setRootStyleName(assignStyleName(inheritableReportStyle));
}

Fixed version (ground truth):
/** 
 * Creates Report default styles
 */
protected void createReportDefaultStyles(StyleHandle handle){
  nonInheritableReportStyle=new StyleDeclaration(cssEngine);
  inheritableReportStyle=new StyleDeclaration(cssEngine);
  addReportDefaultPropertyValue(Style.BACKGROUND_COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.BACKGROUND_IMAGE_PROP,handle);
  addReportDefaultPropertyValue(Style.BACKGROUND_POSITION_X_PROP,handle);
  addReportDefaultPropertyValue(Style.BACKGROUND_POSITION_Y_PROP,handle);
  addReportDefaultPropertyValue(Style.BACKGROUND_REPEAT_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_ALIGN_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_INDENT_PROP,handle);
  addReportDefaultPropertyValue(Style.LETTER_SPACING_PROP,handle);
  addReportDefaultPropertyValue(Style.LINE_HEIGHT_PROP,handle);
  addReportDefaultPropertyValue(Style.ORPHANS_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_TRANSFORM_PROP,handle);
  addReportDefaultPropertyValue(Style.VERTICAL_ALIGN_PROP,handle);
  addReportDefaultPropertyValue(Style.WHITE_SPACE_PROP,handle);
  addReportDefaultPropertyValue(Style.WIDOWS_PROP,handle);
  addReportDefaultPropertyValue(Style.WORD_SPACING_PROP,handle);
  addReportDefaultPropertyValue(Style.DISPLAY_PROP,handle);
  addReportDefaultPropertyValue(Style.MASTER_PAGE_PROP,handle);
  addReportDefaultPropertyValue(Style.PAGE_BREAK_AFTER_PROP,handle);
  addReportDefaultPropertyValue(Style.PAGE_BREAK_BEFORE_PROP,handle);
  addReportDefaultPropertyValue(Style.PAGE_BREAK_INSIDE_PROP,handle);
  addReportDefaultPropertyValue(Style.FONT_FAMILY_PROP,handle);
  addReportDefaultPropertyValue(Style.COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.FONT_SIZE_PROP,handle);
  addReportDefaultPropertyValue(Style.FONT_STYLE_PROP,handle);
  addReportDefaultPropertyValue(Style.FONT_WEIGHT_PROP,handle);
  addReportDefaultPropertyValue(Style.FONT_VARIANT_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_LINE_THROUGH_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_OVERLINE_PROP,handle);
  addReportDefaultPropertyValue(Style.TEXT_UNDERLINE_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_BOTTOM_COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.BORDER_BOTTOM_STYLE_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_BOTTOM_WIDTH_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_LEFT_COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.BORDER_LEFT_STYLE_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_LEFT_WIDTH_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_RIGHT_COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.BORDER_RIGHT_STYLE_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_RIGHT_WIDTH_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_TOP_COLOR_PROP,handle,true);
  addReportDefaultPropertyValue(Style.BORDER_TOP_STYLE_PROP,handle);
  addReportDefaultPropertyValue(Style.BORDER_TOP_WIDTH_PROP,handle);
  addReportDefaultPropertyValue(Style.MARGIN_TOP_PROP,handle);
  addReportDefaultPropertyValue(Style.MARGIN_LEFT_PROP,handle);
  addReportDefaultPropertyValue(Style.MARGIN_BOTTOM_PROP,handle);
  addReportDefaultPropertyValue(Style.MARGIN_RIGHT_PROP,handle);
  addReportDefaultPropertyValue(Style.PADDING_TOP_PROP,handle);
  addReportDefaultPropertyValue(Style.PADDING_LEFT_PROP,handle);
  addReportDefaultPropertyValue(Style.PADDING_BOTTOM_PROP,handle);
  addReportDefaultPropertyValue(Style.PADDING_RIGHT_PROP,handle);
  addReportDefaultPropertyValue(Style.STRING_FORMAT_PROP,handle);
  addReportDefaultPropertyValue(Style.NUMBER_FORMAT_PROP,handle);
  addReportDefaultPropertyValue(Style.DATE_TIME_FORMAT_PROP,handle);
  report.setRootStyleName(assignStyleName(inheritableReportStyle));
}