Program: 24598
Project: 24598
Buggy source:
public void build(EdiHandler handler) throws EdiException {
  Preconditions.checkState(created != null,"String_Node_Str");
  Preconditions.checkState(functionalId != null,"String_Node_Str");
  Preconditions.checkState(applicationSenderCode != null,"String_Node_Str");
  Preconditions.checkState(applicationReceiverCode != null,"String_Node_Str");
  Preconditions.checkState(responsibleAgencyCode != null,"String_Node_Str");
  Preconditions.checkState(versionIndustryReleaseCode != null,"String_Node_Str");
  StringBuffer createdDateBuffer=new StringBuffer();
  Strings.padLeft(Integer.toString(created.get(Calendar.YEAR)).substring(2,4),'0',2,createdDateBuffer,2);
  Strings.padLeft(Integer.toString(created.get(Calendar.MONTH)),'0',2,createdDateBuffer);
  Strings.padLeft(Integer.toString(created.get(Calendar.DAY_OF_MONTH)),'0',2,createdDateBuffer);
  StringBuffer createdTimeBuffer=new StringBuffer();
  Strings.padLeft(Integer.toString(created.get(Calendar.HOUR_OF_DAY)),'0',2,createdTimeBuffer);
  Strings.padLeft(Integer.toString(created.get(Calendar.MINUTE)),'0',2,createdTimeBuffer);
  String controlNumber=Integer.toString(ediBuilder.startGsSequence());
  if (padControlNumber) {
    controlNumber=Strings.padLeft(controlNumber,'0',9);
  }
  String fields[]={functionalId,applicationSenderCode,applicationReceiverCode,createdDateBuffer.toString(),createdTimeBuffer.toString(),controlNumber,responsibleAgencyCode,versionIndustryReleaseCode};
  handler.startSegment("String_Node_Str");
  for (  String field : fields) {
    handler.startElement(field);
    handler.endElement();
  }
}

Fixed version (ground truth):
public void build(EdiHandler handler) throws EdiException {
  Preconditions.checkState(created != null,"String_Node_Str");
  Preconditions.checkState(functionalId != null,"String_Node_Str");
  Preconditions.checkState(applicationSenderCode != null,"String_Node_Str");
  Preconditions.checkState(applicationReceiverCode != null,"String_Node_Str");
  Preconditions.checkState(responsibleAgencyCode != null,"String_Node_Str");
  Preconditions.checkState(versionIndustryReleaseCode != null,"String_Node_Str");
  StringBuffer createdDateBuffer=new StringBuffer();
  Strings.padLeft(Integer.toString(created.get(Calendar.YEAR)).substring(2,4),'0',2,createdDateBuffer,2);
  Strings.padLeft(Integer.toString(created.get(Calendar.MONTH)),'0',2,createdDateBuffer);
  Strings.padLeft(Integer.toString(created.get(Calendar.DAY_OF_MONTH)),'0',2,createdDateBuffer);
  StringBuffer createdTimeBuffer=new StringBuffer();
  Strings.padLeft(Integer.toString(created.get(Calendar.HOUR_OF_DAY)),'0',2,createdTimeBuffer);
  Strings.padLeft(Integer.toString(created.get(Calendar.MINUTE)),'0',2,createdTimeBuffer);
  String controlNumber=Integer.toString(ediBuilder.startGsSequence());
  if (padControlNumber) {
    controlNumber=Strings.padLeft(controlNumber,'0',9);
  }
  String fields[]={functionalId,applicationSenderCode,applicationReceiverCode,createdDateBuffer.toString(),createdTimeBuffer.toString(),controlNumber,responsibleAgencyCode,versionIndustryReleaseCode};
  handler.startSegment("String_Node_Str");
  for (  String field : fields) {
    handler.startElement(field);
    handler.endElement();
  }
  handler.endSegment();
}