Program: 77452
Project: 77452
Buggy source:
private void initFormatField(){
  if ((DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals(lastControlType) && DesignChoiceConstants.PARAM_TYPE_FLOAT.equals(getSelectedDataType())) || (DesignChoiceConstants.PARAM_TYPE_FLOAT.equals(lastControlType) && DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals(getSelectedDataType()))) {
    return;
  }
  IChoiceSet choiceSet=getFormatChoiceSet(getSelectedDataType());
  if (choiceSet == null) {
    formatCategroy=formatPattern=null;
  }
 else {
    if (!loading || ((inputParameter.getCategory() == null && inputParameter.getPattern() == null))) {
      if (DesignChoiceConstants.PARAM_TYPE_STRING.equals(getSelectedDataType())) {
        formatCategroy=choiceSet.findChoice(DesignChoiceConstants.STRING_FORMAT_TYPE_UNFORMATTED).getName();
      }
 else       if (DesignChoiceConstants.PARAM_TYPE_DATETIME.equals(getSelectedDataType())) {
        formatCategroy=choiceSet.findChoice(DesignChoiceConstants.DATETIEM_FORMAT_TYPE_UNFORMATTED).getName();
      }
 else       if (DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals(getSelectedDataType()) || DesignChoiceConstants.PARAM_TYPE_FLOAT.equals(getSelectedDataType())) {
        formatCategroy=choiceSet.findChoice(DesignChoiceConstants.NUMBER_FORMAT_TYPE_UNFORMATTED).getName();
      }
      formatPattern=null;
    }
 else {
      formatCategroy=inputParameter.getCategory();
      if (formatCategroy == null) {
        formatCategroy=DesignChoiceConstants.STRING_FORMAT_TYPE_UNFORMATTED;
      }
      formatPattern=inputParameter.getPattern();
    }
  }
  updateFormatField();
}

Fixed version (ground truth):
private void initFormatField(){
  if ((DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals(lastControlType) && DesignChoiceConstants.PARAM_TYPE_FLOAT.equals(getSelectedDataType())) || (DesignChoiceConstants.PARAM_TYPE_FLOAT.equals(lastControlType) && DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals(getSelectedDataType()))) {
    return;
  }
  IChoiceSet choiceSet=getFormatChoiceSet(getSelectedDataType());
  if (choiceSet == null) {
    formatCategroy=formatPattern=null;
  }
 else {
    if (!loading || ((inputParameter.getCategory() == null && inputParameter.getPattern() == null))) {
      if (DesignChoiceConstants.PARAM_TYPE_STRING.equals(getSelectedDataType())) {
        formatCategroy=choiceSet.findChoice(DesignChoiceConstants.STRING_FORMAT_TYPE_UNFORMATTED).getName();
      }
 else       if (DesignChoiceConstants.PARAM_TYPE_DATETIME.equals(getSelectedDataType())) {
        formatCategroy=choiceSet.findChoice(DesignChoiceConstants.DATETIEM_FORMAT_TYPE_UNFORMATTED).getName();
      }
 else       if (DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals(getSelectedDataType()) || DesignChoiceConstants.PARAM_TYPE_FLOAT.equals(getSelectedDataType()) || DesignChoiceConstants.PARAM_TYPE_INTEGER.equals(getSelectedDataType())) {
        formatCategroy=choiceSet.findChoice(DesignChoiceConstants.NUMBER_FORMAT_TYPE_UNFORMATTED).getName();
      }
      formatPattern=null;
    }
 else {
      formatCategroy=inputParameter.getCategory();
      if (formatCategroy == null) {
        formatCategroy=DesignChoiceConstants.STRING_FORMAT_TYPE_UNFORMATTED;
      }
      formatPattern=inputParameter.getPattern();
    }
  }
  updateFormatField();
}