Program: 57032
Project: 57032
Buggy source:
/** 
 * This methods generates the HTML code of the current b:selectBooleanCheckbox.
 * @param context the FacesContext.
 * @param component the current b:selectBooleanCheckbox.
 * @throws IOException thrown if something goes wrong when writing the HTML code.
 */
@Override public void encodeBegin(FacesContext context,UIComponent component) throws IOException {
  if (!component.isRendered()) {
    return;
  }
  SelectBooleanCheckbox selectBooleanCheckbox=(SelectBooleanCheckbox)component;
  ResponseWriter rw=context.getResponseWriter();
  String clientId=selectBooleanCheckbox.getClientId();
  addLabel(rw,clientId,selectBooleanCheckbox);
  UIComponent prependingAddOnFacet=selectBooleanCheckbox.getFacet(C.PREPEND);
  if ((prependingAddOnFacet != null)) {
    R.addClass2FacetComponent(prependingAddOnFacet,"String_Node_Str",ADDON);
  }
  UIComponent appendingAddOnFacet=selectBooleanCheckbox.getFacet(C.APPEND);
  if ((appendingAddOnFacet != null)) {
    R.addClass2FacetComponent(appendingAddOnFacet,"String_Node_Str",ADDON);
  }
  final boolean hasAddon=startInputGroupForAddOn(rw,(prependingAddOnFacet != null),(appendingAddOnFacet != null),selectBooleanCheckbox);
  int span=startColSpanDiv(rw,selectBooleanCheckbox);
  addPrependingAddOnToInputGroup(context,rw,prependingAddOnFacet,(prependingAddOnFacet != null),selectBooleanCheckbox);
  renderInputTag(context,rw,clientId,selectBooleanCheckbox);
  addAppendingAddOnToInputGroup(context,rw,appendingAddOnFacet,(appendingAddOnFacet != null),selectBooleanCheckbox);
  closeInputGroupForAddOn(rw,hasAddon);
  closeColSpanDiv(rw,span);
  Tooltip.activateTooltips(context,selectBooleanCheckbox);
}

Fixed version (ground truth):
/** 
 * This methods generates the HTML code of the current b:selectBooleanCheckbox.
 * @param context the FacesContext.
 * @param component the current b:selectBooleanCheckbox.
 * @throws IOException thrown if something goes wrong when writing the HTML code.
 */
@Override public void encodeBegin(FacesContext context,UIComponent component) throws IOException {
  if (!component.isRendered()) {
    return;
  }
  SelectBooleanCheckbox selectBooleanCheckbox=(SelectBooleanCheckbox)component;
  ResponseWriter rw=context.getResponseWriter();
  String clientId=selectBooleanCheckbox.getClientId();
  int span=startColSpanDiv(rw,selectBooleanCheckbox);
  addLabel(rw,clientId,selectBooleanCheckbox);
  UIComponent prependingAddOnFacet=selectBooleanCheckbox.getFacet(C.PREPEND);
  if ((prependingAddOnFacet != null)) {
    R.addClass2FacetComponent(prependingAddOnFacet,"String_Node_Str",ADDON);
  }
  UIComponent appendingAddOnFacet=selectBooleanCheckbox.getFacet(C.APPEND);
  if ((appendingAddOnFacet != null)) {
    R.addClass2FacetComponent(appendingAddOnFacet,"String_Node_Str",ADDON);
  }
  final boolean hasAddon=startInputGroupForAddOn(rw,(prependingAddOnFacet != null),(appendingAddOnFacet != null),selectBooleanCheckbox);
  addPrependingAddOnToInputGroup(context,rw,prependingAddOnFacet,(prependingAddOnFacet != null),selectBooleanCheckbox);
  renderInputTag(context,rw,clientId,selectBooleanCheckbox);
  addAppendingAddOnToInputGroup(context,rw,appendingAddOnFacet,(appendingAddOnFacet != null),selectBooleanCheckbox);
  closeInputGroupForAddOn(rw,hasAddon);
  closeColSpanDiv(rw,span);
  Tooltip.activateTooltips(context,selectBooleanCheckbox);
}