Program: 125755
Project: 125755
Buggy source:
private void createAuthenticationForHive(Composite parent){
  GridLayout parentLayout=(GridLayout)parent.getLayout();
  authenticationGrp=new Group(parent,SWT.NONE);
  authenticationGrp.setText(Messages.getString("String_Node_Str"));
  GridDataFactory.fillDefaults().span(parentLayout.numColumns,1).align(SWT.FILL,SWT.BEGINNING).grab(true,false).applyTo(authenticationGrp);
  GridLayout authLayout=new GridLayout(4,false);
  authLayout.marginHeight=0;
  authenticationGrp.setLayout(authLayout);
  useKerberos=new Button(authenticationGrp,SWT.CHECK);
  useKerberos.setText(Messages.getString("String_Node_Str"));
  GridData data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useKerberos.setLayoutData(data);
  authenticationCom=new Composite(authenticationGrp,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationCom.setLayoutData(data);
  authenticationCom.setLayout(new GridLayout(3,false));
  hivePrincipalTxt=new LabelledText(authenticationCom,Messages.getString("String_Node_Str"),2);
  metastoreUrlTxt=new LabelledText(authenticationCom,Messages.getString("String_Node_Str"),2);
  driverJarTxt=new LabelledText(authenticationCom,Messages.getString("String_Node_Str"),1);
  browseDriverJarBtn=new Button(authenticationCom,SWT.NONE);
  browseDriverJarBtn.setText("String_Node_Str");
  browseDriverJarBtn.setToolTipText(Messages.getString("String_Node_Str"));
  driverClassTxt=new LabelledCombo(authenticationCom,Messages.getString("String_Node_Str"),"String_Node_Str",null,1,true,SWT.NONE);
  browseDriverClassButton=new Button(authenticationCom,SWT.NONE);
  browseDriverClassButton.setText("String_Node_Str");
  browseDriverClassButton.setToolTipText(Messages.getString("String_Node_Str"));
  usernameTxt=new LabelledText(authenticationCom,Messages.getString("String_Node_Str"),2);
  passwordTxt=new LabelledText(authenticationCom,Messages.getString("String_Node_Str"),2,SWT.PASSWORD);
  useKeyTab=new Button(authenticationCom,SWT.CHECK);
  useKeyTab.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useKeyTab.setLayoutData(data);
  keyTabComponent=new Composite(authenticationCom,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  data.exclude=true;
  keyTabComponent.setLayoutData(data);
  keyTabComponent.setVisible(false);
  keyTabComponent.setLayout(new GridLayout(5,false));
  principalTxt=new LabelledText(keyTabComponent,Messages.getString("String_Node_Str"),1);
  String[] extensions={"String_Node_Str"};
  keytabTxt=new LabelledFileField(keyTabComponent,Messages.getString("String_Node_Str"),extensions);
  useMaprTForHive=new Button(authenticationGrp,SWT.CHECK);
  useMaprTForHive.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useMaprTForHive.setLayoutData(data);
  authenticationMaprTComForHive=new Composite(authenticationGrp,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationMaprTComForHive.setLayoutData(data);
  authenticationMaprTComForHive.setLayout(new GridLayout(3,false));
  authenticationUserPassComForHive=new Composite(authenticationMaprTComForHive,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationUserPassComForHive.setLayoutData(data);
  authenticationUserPassComForHive.setLayout(new GridLayout(3,false));
  maprTUsernameForHiveTxt=new LabelledText(authenticationUserPassComForHive,Messages.getString("String_Node_Str"),2);
  maprTPasswordForHiveTxt=new LabelledText(authenticationUserPassComForHive,Messages.getString("String_Node_Str"),2,SWT.PASSWORD);
  maprTClusterForHiveTxt=new LabelledText(authenticationMaprTComForHive,Messages.getString("String_Node_Str"),2);
  maprTDurationForHiveTxt=new LabelledText(authenticationMaprTComForHive,Messages.getString("String_Node_Str"),2);
  addListenerForAuthentication();
  initForAuthentication();
}

Fixed version (ground truth):
private void createAuthenticationForHive(Composite parent){
  GridLayout parentLayout=(GridLayout)parent.getLayout();
  authenticationGrp=new Group(parent,SWT.NONE);
  authenticationGrp.setText(Messages.getString("String_Node_Str"));
  GridDataFactory.fillDefaults().span(parentLayout.numColumns,1).align(SWT.FILL,SWT.BEGINNING).grab(true,false).applyTo(authenticationGrp);
  GridLayout authLayout=new GridLayout(4,false);
  authLayout.marginHeight=0;
  authenticationGrp.setLayout(authLayout);
  useKerberos=new Button(authenticationGrp,SWT.CHECK);
  useKerberos.setText(Messages.getString("String_Node_Str"));
  GridData data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useKerberos.setLayoutData(data);
  authenticationCom=new Composite(authenticationGrp,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationCom.setLayoutData(data);
  authenticationCom.setLayout(new GridLayout(3,false));
  hivePrincipalTxt=new LabelledText(authenticationCom,Messages.getString("String_Node_Str"),2);
  metastoreUrlTxt=new LabelledText(authenticationCom,Messages.getString("String_Node_Str"),2);
  driverJarTxt=new LabelledText(authenticationCom,Messages.getString("String_Node_Str"),1);
  browseDriverJarBtn=new Button(authenticationCom,SWT.NONE);
  browseDriverJarBtn.setText("String_Node_Str");
  browseDriverJarBtn.setToolTipText(Messages.getString("String_Node_Str"));
  driverClassTxt=new LabelledCombo(authenticationCom,Messages.getString("String_Node_Str"),"String_Node_Str",null,1,true,SWT.NONE);
  browseDriverClassButton=new Button(authenticationCom,SWT.NONE);
  browseDriverClassButton.setText("String_Node_Str");
  browseDriverClassButton.setToolTipText(Messages.getString("String_Node_Str"));
  usernameTxt=new LabelledText(authenticationCom,Messages.getString("String_Node_Str"),2);
  passwordTxt=new LabelledText(authenticationCom,Messages.getString("String_Node_Str"),2,SWT.PASSWORD);
  useKeyTab=new Button(authenticationCom,SWT.CHECK);
  useKeyTab.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useKeyTab.setLayoutData(data);
  keyTabComponent=new Composite(authenticationCom,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  data.exclude=true;
  keyTabComponent.setLayoutData(data);
  keyTabComponent.setVisible(false);
  keyTabComponent.setLayout(new GridLayout(5,false));
  principalTxt=new LabelledText(keyTabComponent,Messages.getString("String_Node_Str"),1);
  String[] extensions={"String_Node_Str"};
  keytabTxt=new LabelledFileField(keyTabComponent,Messages.getString("String_Node_Str"),extensions);
  useMaprTForHive=new Button(authenticationGrp,SWT.CHECK);
  useMaprTForHive.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useMaprTForHive.setLayoutData(data);
  authenticationMaprTComForHive=new Composite(authenticationGrp,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationMaprTComForHive.setLayoutData(data);
  authenticationMaprTComForHive.setLayout(new GridLayout(3,false));
  authenticationUserPassComForHive=new Composite(authenticationMaprTComForHive,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationUserPassComForHive.setLayoutData(data);
  authenticationUserPassComForHive.setLayout(new GridLayout(3,false));
  maprTUsernameForHiveTxt=new LabelledText(authenticationUserPassComForHive,Messages.getString("String_Node_Str"),2);
  maprTPasswordForHiveTxt=new LabelledText(authenticationUserPassComForHive,Messages.getString("String_Node_Str"),2,SWT.PASSWORD | SWT.BORDER | SWT.SINGLE);
  maprTPasswordForHiveTxt.getTextControl().setEchoChar('*');
  maprTClusterForHiveTxt=new LabelledText(authenticationMaprTComForHive,Messages.getString("String_Node_Str"),2);
  maprTDurationForHiveTxt=new LabelledText(authenticationMaprTComForHive,Messages.getString("String_Node_Str"),2);
  addListenerForAuthentication();
  initForAuthentication();
}