Program: 124930
Project: 124930
Buggy source:
/** 
 * DOC plv Comment method "updateSetting".
 * @param isSupportSecurity
 */
private void updateSetting(boolean isSupportSecurity){
  if (ooziePropertyTypeCombo != null && ooziePropertyTypeCombo.getSelectionIndex() == 1) {
    hadoopDistributionCombo.setReadOnly(true);
    hadoopVersionCombo.setReadOnly(true);
    kerbBtn.setEnabled(false);
    principalText.setEditable(false);
    nameNodeEndPointTxt.setEditable(false);
    jobTrackerEndPointTxt.setEditable(false);
    oozieEndPointTxt.setEditable(false);
    userNameTxt.setEditable(false);
    kerbLabel.setEnabled(true);
    principalText.setEnabled(true);
    principalText.setText(principalValue != null ? principalValue : "String_Node_Str");
    userNameTxt.setText(userNameValue != null ? userNameValue : "String_Node_Str");
  }
 else {
    hadoopDistributionCombo.setReadOnly(false);
    hadoopVersionCombo.setReadOnly(false);
    nameNodeEndPointTxt.setEditable(true);
    jobTrackerEndPointTxt.setEditable(true);
    oozieEndPointTxt.setEditable(true);
    kerbBtn.setEnabled(isSupportSecurity);
    kerbLabel.setEnabled(kerbBtn.getEnabled());
    kerbBtn.setSelection(kerbBtn.getEnabled() ? enableKerberos : false);
    if (!kerbBtn.getEnabled()) {
      setEnableKerberos(false);
    }
    principalText.setEditable(kerbBtn.getEnabled() && kerbBtn.getSelection());
    userNameTxt.setEditable(!principalText.getEditable());
    userNameLbl.setEnabled(userNameTxt.getEditable());
    principalText.setText(principalText.getEditable() ? principalValue : "String_Node_Str");
    userNameTxt.setText(userNameTxt.getEditable() && userNameValue != null ? userNameValue : "String_Node_Str");
  }
  nameNodeEndPointTxt.setText(nameNodeEndPointValue == null ? "String_Node_Str" : nameNodeEndPointValue);
  jobTrackerEndPointTxt.setText(jobTrackerEndPointValue == null ? "String_Node_Str" : jobTrackerEndPointValue);
  oozieEndPointTxt.setText(oozieEndPointValue == null ? "String_Node_Str" : oozieEndPointValue);
}

Fixed version (ground truth):
/** 
 * DOC plv Comment method "updateSetting".
 * @param isSupportSecurity
 */
private void updateSetting(boolean isSupportSecurity){
  if (ooziePropertyTypeCombo != null && ooziePropertyTypeCombo.getSelectionIndex() == 1) {
    hadoopDistributionCombo.setReadOnly(true);
    hadoopVersionCombo.setReadOnly(true);
    kerbBtn.setEnabled(false);
    principalText.setEditable(false);
    nameNodeEndPointTxt.setEditable(false);
    jobTrackerEndPointTxt.setEditable(false);
    oozieEndPointTxt.setEditable(false);
    userNameTxt.setEditable(false);
    kerbLabel.setEnabled(true);
    principalText.setEnabled(true);
    principalText.setText(principalValue != null ? principalValue : "String_Node_Str");
    userNameTxt.setText(userNameValue != null ? userNameValue : "String_Node_Str");
    propertiesTableView.setReadOnly(true);
  }
 else {
    hadoopDistributionCombo.setReadOnly(false);
    hadoopVersionCombo.setReadOnly(false);
    nameNodeEndPointTxt.setEditable(true);
    jobTrackerEndPointTxt.setEditable(true);
    oozieEndPointTxt.setEditable(true);
    kerbBtn.setEnabled(isSupportSecurity);
    kerbLabel.setEnabled(kerbBtn.getEnabled());
    kerbBtn.setSelection(kerbBtn.getEnabled() ? enableKerberos : false);
    if (!kerbBtn.getEnabled()) {
      setEnableKerberos(false);
    }
    principalText.setEditable(kerbBtn.getEnabled() && kerbBtn.getSelection());
    userNameTxt.setEditable(!principalText.getEditable());
    userNameLbl.setEnabled(userNameTxt.getEditable());
    principalText.setText(principalText.getEditable() ? principalValue : "String_Node_Str");
    userNameTxt.setText(userNameTxt.getEditable() && userNameValue != null ? userNameValue : "String_Node_Str");
    propertiesTableView.setReadOnly(false);
  }
  nameNodeEndPointTxt.setText(nameNodeEndPointValue == null ? "String_Node_Str" : nameNodeEndPointValue);
  jobTrackerEndPointTxt.setText(jobTrackerEndPointValue == null ? "String_Node_Str" : jobTrackerEndPointValue);
  oozieEndPointTxt.setText(oozieEndPointValue == null ? "String_Node_Str" : oozieEndPointValue);
}