Program: 6035
Project: 6035
Buggy source:
public void loadProperties(AppConfig config){
  jtxtMachineHostname.setText(config.getProperty("String_Node_Str"));
  String lafclass=config.getProperty("String_Node_Str");
  jcboLAF.setSelectedItem(null);
  for (int i=0; i < jcboLAF.getItemCount(); i++) {
    LAFInfo lafinfo=(LAFInfo)jcboLAF.getItemAt(i);
    if (lafinfo.getClassName().equals(lafclass)) {
      jcboLAF.setSelectedIndex(i);
      break;
    }
  }
  jcboMachineScreenmode.setSelectedItem(config.getProperty("String_Node_Str"));
  jcboTicketsBag.setSelectedItem(config.getProperty("String_Node_Str"));
  StringParser p=new StringParser(config.getProperty("String_Node_Str"));
  String sparam=unifySerialInterface(p.nextToken(':'));
  if ("String_Node_Str".equals(sparam) || "String_Node_Str".equals(sparam)) {
    jcboMachinePrinter.setSelectedItem("String_Node_Str");
    jcboConnPrinter.setSelectedItem(sparam);
    jcboSerialPrinter.setSelectedItem(p.nextToken(','));
  }
 else   if ("String_Node_Str".equals(sparam)) {
    jcboMachinePrinter.setSelectedItem(sparam);
    m_jtxtJPOSPrinter.setText(p.nextToken(','));
    m_jtxtJPOSDrawer.setText(p.nextToken(','));
  }
 else {
    jcboMachinePrinter.setSelectedItem(sparam);
    jcboConnPrinter.setSelectedItem(unifySerialInterface(p.nextToken(',')));
    jcboSerialPrinter.setSelectedItem(p.nextToken(','));
  }
  p=new StringParser(config.getProperty("String_Node_Str"));
  sparam=unifySerialInterface(p.nextToken(':'));
  if ("String_Node_Str".equals(sparam) || "String_Node_Str".equals(sparam)) {
    jcboMachinePrinter2.setSelectedItem("String_Node_Str");
    jcboConnPrinter2.setSelectedItem(sparam);
    jcboSerialPrinter2.setSelectedItem(p.nextToken(','));
  }
 else   if ("String_Node_Str".equals(sparam)) {
    jcboMachinePrinter2.setSelectedItem(sparam);
    m_jtxtJPOSPrinter2.setText(p.nextToken(','));
    m_jtxtJPOSDrawer2.setText(p.nextToken(','));
  }
 else {
    jcboMachinePrinter2.setSelectedItem(sparam);
    jcboConnPrinter2.setSelectedItem(unifySerialInterface(p.nextToken(',')));
    jcboSerialPrinter2.setSelectedItem(p.nextToken(','));
  }
  p=new StringParser(config.getProperty("String_Node_Str"));
  sparam=unifySerialInterface(p.nextToken(':'));
  if ("String_Node_Str".equals(sparam) || "String_Node_Str".equals(sparam)) {
    jcboMachinePrinter3.setSelectedItem("String_Node_Str");
    jcboConnPrinter3.setSelectedItem(sparam);
    jcboSerialPrinter3.setSelectedItem(p.nextToken(','));
  }
 else   if ("String_Node_Str".equals(sparam)) {
    jcboMachinePrinter3.setSelectedItem(sparam);
    m_jtxtJPOSPrinter3.setText(p.nextToken(','));
    m_jtxtJPOSDrawer3.setText(p.nextToken(','));
  }
 else {
    jcboMachinePrinter3.setSelectedItem(sparam);
    jcboConnPrinter3.setSelectedItem(unifySerialInterface(p.nextToken(',')));
    jcboSerialPrinter3.setSelectedItem(p.nextToken(','));
  }
  p=new StringParser(config.getProperty("String_Node_Str"));
  sparam=unifySerialInterface(p.nextToken(':'));
  if ("String_Node_Str".equals(sparam) || "String_Node_Str".equals(sparam)) {
    jcboMachineDisplay.setSelectedItem("String_Node_Str");
    jcboConnDisplay.setSelectedItem(sparam);
    jcboSerialDisplay.setSelectedItem(p.nextToken(','));
  }
 else   if ("String_Node_Str".equals(sparam)) {
    jcboMachineDisplay.setSelectedItem(sparam);
    m_jtxtJPOSName.setText(p.nextToken(','));
  }
 else {
    jcboMachineDisplay.setSelectedItem(sparam);
    jcboConnDisplay.setSelectedItem(unifySerialInterface(p.nextToken(',')));
    jcboSerialDisplay.setSelectedItem(p.nextToken(','));
  }
  p=new StringParser(config.getProperty("String_Node_Str"));
  sparam=p.nextToken(':');
  jcboMachineScale.setSelectedItem(sparam);
  if ("String_Node_Str".equals(sparam) || "String_Node_Str".equals(sparam)) {
    jcboSerialScale.setSelectedItem(p.nextToken(','));
  }
  p=new StringParser(config.getProperty("String_Node_Str"));
  sparam=p.nextToken(':');
  jcboMachineScanner.setSelectedItem(sparam);
  if ("String_Node_Str".equals(sparam)) {
    jcboSerialScanner.setSelectedItem(p.nextToken(','));
  }
  cboPrinters.setSelectedItem(config.getProperty("String_Node_Str"));
  m_ReceiptPrinter.setSelected("String_Node_Str".equals(config.getProperty("String_Node_Str")));
  dirty.setDirty(false);
}

Fixed version (ground truth):
public void loadProperties(AppConfig config){
  uniqueinstance=config.getProperty("String_Node_Str");
  jtxtMachineHostname.setText(config.getProperty("String_Node_Str"));
  String lafclass=config.getProperty("String_Node_Str");
  jcboLAF.setSelectedItem(null);
  for (int i=0; i < jcboLAF.getItemCount(); i++) {
    LAFInfo lafinfo=(LAFInfo)jcboLAF.getItemAt(i);
    if (lafinfo.getClassName().equals(lafclass)) {
      jcboLAF.setSelectedIndex(i);
      break;
    }
  }
  jcboMachineScreenmode.setSelectedItem(config.getProperty("String_Node_Str"));
  jcboTicketsBag.setSelectedItem(config.getProperty("String_Node_Str"));
  StringParser p=new StringParser(config.getProperty("String_Node_Str"));
  String sparam=unifySerialInterface(p.nextToken(':'));
  if ("String_Node_Str".equals(sparam) || "String_Node_Str".equals(sparam)) {
    jcboMachinePrinter.setSelectedItem("String_Node_Str");
    jcboConnPrinter.setSelectedItem(sparam);
    jcboSerialPrinter.setSelectedItem(p.nextToken(','));
  }
 else   if ("String_Node_Str".equals(sparam)) {
    jcboMachinePrinter.setSelectedItem(sparam);
    m_jtxtJPOSPrinter.setText(p.nextToken(','));
    m_jtxtJPOSDrawer.setText(p.nextToken(','));
  }
 else {
    jcboMachinePrinter.setSelectedItem(sparam);
    jcboConnPrinter.setSelectedItem(unifySerialInterface(p.nextToken(',')));
    jcboSerialPrinter.setSelectedItem(p.nextToken(','));
  }
  p=new StringParser(config.getProperty("String_Node_Str"));
  sparam=unifySerialInterface(p.nextToken(':'));
  if ("String_Node_Str".equals(sparam) || "String_Node_Str".equals(sparam)) {
    jcboMachinePrinter2.setSelectedItem("String_Node_Str");
    jcboConnPrinter2.setSelectedItem(sparam);
    jcboSerialPrinter2.setSelectedItem(p.nextToken(','));
  }
 else   if ("String_Node_Str".equals(sparam)) {
    jcboMachinePrinter2.setSelectedItem(sparam);
    m_jtxtJPOSPrinter2.setText(p.nextToken(','));
    m_jtxtJPOSDrawer2.setText(p.nextToken(','));
  }
 else {
    jcboMachinePrinter2.setSelectedItem(sparam);
    jcboConnPrinter2.setSelectedItem(unifySerialInterface(p.nextToken(',')));
    jcboSerialPrinter2.setSelectedItem(p.nextToken(','));
  }
  p=new StringParser(config.getProperty("String_Node_Str"));
  sparam=unifySerialInterface(p.nextToken(':'));
  if ("String_Node_Str".equals(sparam) || "String_Node_Str".equals(sparam)) {
    jcboMachinePrinter3.setSelectedItem("String_Node_Str");
    jcboConnPrinter3.setSelectedItem(sparam);
    jcboSerialPrinter3.setSelectedItem(p.nextToken(','));
  }
 else   if ("String_Node_Str".equals(sparam)) {
    jcboMachinePrinter3.setSelectedItem(sparam);
    m_jtxtJPOSPrinter3.setText(p.nextToken(','));
    m_jtxtJPOSDrawer3.setText(p.nextToken(','));
  }
 else {
    jcboMachinePrinter3.setSelectedItem(sparam);
    jcboConnPrinter3.setSelectedItem(unifySerialInterface(p.nextToken(',')));
    jcboSerialPrinter3.setSelectedItem(p.nextToken(','));
  }
  p=new StringParser(config.getProperty("String_Node_Str"));
  sparam=unifySerialInterface(p.nextToken(':'));
  if ("String_Node_Str".equals(sparam) || "String_Node_Str".equals(sparam)) {
    jcboMachineDisplay.setSelectedItem("String_Node_Str");
    jcboConnDisplay.setSelectedItem(sparam);
    jcboSerialDisplay.setSelectedItem(p.nextToken(','));
  }
 else   if ("String_Node_Str".equals(sparam)) {
    jcboMachineDisplay.setSelectedItem(sparam);
    m_jtxtJPOSName.setText(p.nextToken(','));
  }
 else {
    jcboMachineDisplay.setSelectedItem(sparam);
    jcboConnDisplay.setSelectedItem(unifySerialInterface(p.nextToken(',')));
    jcboSerialDisplay.setSelectedItem(p.nextToken(','));
  }
  p=new StringParser(config.getProperty("String_Node_Str"));
  sparam=p.nextToken(':');
  jcboMachineScale.setSelectedItem(sparam);
  if ("String_Node_Str".equals(sparam) || "String_Node_Str".equals(sparam)) {
    jcboSerialScale.setSelectedItem(p.nextToken(','));
  }
  p=new StringParser(config.getProperty("String_Node_Str"));
  sparam=p.nextToken(':');
  jcboMachineScanner.setSelectedItem(sparam);
  if ("String_Node_Str".equals(sparam)) {
    jcboSerialScanner.setSelectedItem(p.nextToken(','));
  }
  cboPrinters.setSelectedItem(config.getProperty("String_Node_Str"));
  m_ReceiptPrinter.setSelected("String_Node_Str".equals(config.getProperty("String_Node_Str")));
  dirty.setDirty(false);
}