Program: 10579
Project: 10579
Buggy source:
public static void _updateGuiAxisSettings(Axis ax){
switch (ax.getAxis_name().toLowerCase()) {
case "String_Node_Str":
    axisAmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
  axisAmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisAmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisAjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisAmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisAmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisAradius.setText(String.valueOf(ax.getRadius()));
axisAsearchVelocity.setText(String.valueOf(ax.getSearch_velocity()));
axisAzeroBackoff.setText(String.valueOf(ax.getZero_backoff()));
axisAswitchModeMax.getSelectionModel().select(ax.getMaxSwitchMode().ordinal());
axisAswitchModeMin.getSelectionModel().select(ax.getMinSwitchMode().ordinal());
axisAlatchBackoff.setText(String.valueOf(ax.getLatch_backoff()));
axisAlatchVelocity.setText(String.valueOf(ax.getLatch_velocity()));
break;
case "String_Node_Str":
axisBmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
axisBmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisBmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisBjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisBmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisBmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisBradius.setText(String.valueOf(ax.getRadius()));
axisBsearchVelocity.setDisable(true);
axisBlatchVelocity.setDisable(true);
axisBlatchBackoff.setDisable(true);
axisBswitchModeMax.setDisable(true);
axisBswitchModeMin.setDisable(true);
axisBzeroBackoff.setDisable(true);
break;
case "String_Node_Str":
axisCmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
axisCmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisCmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisCjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisCmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisCmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisCradius.setText(String.valueOf(ax.getRadius()));
axisCsearchVelocity.setDisable(true);
axisClatchVelocity.setDisable(true);
axisClatchBackoff.setDisable(true);
axisCswitchModeMax.setDisable(true);
axisCswitchModeMin.setDisable(true);
axisCzeroBackoff.setDisable(true);
break;
case "String_Node_Str":
axisXmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
axisXmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisXmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisXjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisXsearchVelocity.setText(String.valueOf(ax.getSearch_velocity()));
axisXzeroBackoff.setText(String.valueOf(ax.getZero_backoff()));
axisXswitchModeMax.getSelectionModel().select(ax.getMaxSwitchMode().ordinal());
axisXswitchModeMin.getSelectionModel().select(ax.getMinSwitchMode().ordinal());
axisXmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisXmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisXlatchBackoff.setText(String.valueOf(ax.getLatch_backoff()));
axisXlatchVelocity.setText(String.valueOf(ax.getLatch_velocity()));
break;
case "String_Node_Str":
axisYmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
axisYmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisYmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisYjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisYsearchVelocity.setText(String.valueOf(ax.getSearch_velocity()));
axisYzeroBackoff.setText(String.valueOf(ax.getZero_backoff()));
axisYswitchModeMax.getSelectionModel().select(ax.getMaxSwitchMode().ordinal());
axisYswitchModeMin.getSelectionModel().select(ax.getMinSwitchMode().ordinal());
axisYmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisYmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisYlatchVelocity.setText(String.valueOf(ax.getLatch_velocity()));
axisYlatchBackoff.setText(String.valueOf(ax.getLatch_backoff()));
break;
case "String_Node_Str":
axisZmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
axisZmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisZmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisZjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisZsearchVelocity.setText(String.valueOf(ax.getSearch_velocity()));
axisZzeroBackoff.setText(String.valueOf(ax.getZero_backoff()));
axisZswitchModeMin.getSelectionModel().select(ax.getMaxSwitchMode().ordinal());
axisZswitchModeMax.getSelectionModel().select(ax.getMinSwitchMode().ordinal());
axisZmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisZmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisZlatchVelocity.setText(String.valueOf(ax.getLatch_velocity()));
axisZlatchBackoff.setText(String.valueOf(ax.getLatch_backoff()));
break;
}
}

Fixed version (ground truth):
public static void _updateGuiAxisSettings(Axis ax){
switch (ax.getAxis_name().toLowerCase()) {
case "String_Node_Str":
    axisAmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
  axisAmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisAmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisAjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisAmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisAmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisAradius.setText(String.valueOf(ax.getRadius()));
axisAsearchVelocity.setText(String.valueOf(ax.getSearch_velocity()));
axisAzeroBackoff.setText(String.valueOf(ax.getZero_backoff()));
axisAswitchModeMax.getSelectionModel().select(ax.getMaxSwitchMode().ordinal());
axisAswitchModeMin.getSelectionModel().select(ax.getMinSwitchMode().ordinal());
axisAlatchBackoff.setText(String.valueOf(ax.getLatch_backoff()));
axisAlatchVelocity.setText(String.valueOf(ax.getLatch_velocity()));
break;
case "String_Node_Str":
axisBmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
axisBmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisBmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisBjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisBmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisBmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisBradius.setText(String.valueOf(ax.getRadius()));
axisBsearchVelocity.setDisable(true);
axisBlatchVelocity.setDisable(true);
axisBlatchBackoff.setDisable(true);
axisBswitchModeMax.setDisable(true);
axisBswitchModeMin.setDisable(true);
axisBzeroBackoff.setDisable(true);
break;
case "String_Node_Str":
axisCmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
axisCmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisCmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisCjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisCmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisCmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisCradius.setText(String.valueOf(ax.getRadius()));
axisCsearchVelocity.setDisable(true);
axisClatchVelocity.setDisable(true);
axisClatchBackoff.setDisable(true);
axisCswitchModeMax.setDisable(true);
axisCswitchModeMin.setDisable(true);
axisCzeroBackoff.setDisable(true);
break;
case "String_Node_Str":
axisXmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
axisXmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisXmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisXjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisXsearchVelocity.setText(String.valueOf(ax.getSearch_velocity()));
axisXzeroBackoff.setText(String.valueOf(ax.getZero_backoff()));
axisXswitchModeMax.getSelectionModel().select(ax.getMaxSwitchMode().ordinal());
axisXswitchModeMin.getSelectionModel().select(ax.getMinSwitchMode().ordinal());
axisXmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisXmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisXlatchBackoff.setText(String.valueOf(ax.getLatch_backoff()));
axisXlatchVelocity.setText(String.valueOf(ax.getLatch_velocity()));
break;
case "String_Node_Str":
axisYmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
axisYmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisYmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisYjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisYsearchVelocity.setText(String.valueOf(ax.getSearch_velocity()));
axisYzeroBackoff.setText(String.valueOf(ax.getZero_backoff()));
axisYswitchModeMax.getSelectionModel().select(ax.getMaxSwitchMode().ordinal());
axisYswitchModeMin.getSelectionModel().select(ax.getMinSwitchMode().ordinal());
axisYmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisYmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisYlatchVelocity.setText(String.valueOf(ax.getLatch_velocity()));
axisYlatchBackoff.setText(String.valueOf(ax.getLatch_backoff()));
break;
case "String_Node_Str":
axisZmode.getSelectionModel().select(ax.getAxis_mode().ordinal());
axisZmaxFeedRate.setText(String.valueOf(ax.getFeed_rate_maximum()));
axisZmaxTravel.setText(String.valueOf(ax.getTravel_maximum()));
axisZjunctionDeviation.setText(String.valueOf(ax.getJunction_devation()));
axisZsearchVelocity.setText(String.valueOf(ax.getSearch_velocity()));
axisZzeroBackoff.setText(String.valueOf(ax.getZero_backoff()));
axisZswitchModeMin.getSelectionModel().select(ax.getMinSwitchMode().ordinal());
axisZswitchModeMax.getSelectionModel().select(ax.getMaxSwitchMode().ordinal());
axisZmaxVelocity.setText(String.valueOf(ax.getVelocityMaximum()));
axisZmaxJerk.setText(decimalFormat.format(ax.getJerkMaximum()));
axisZlatchVelocity.setText(String.valueOf(ax.getLatch_velocity()));
axisZlatchBackoff.setText(String.valueOf(ax.getLatch_backoff()));
break;
}
}