Program: 125754
Project: 125754
Buggy source:
private void createAuthenticationForHBase(Composite parent){
  GridLayout parentLayout=(GridLayout)parent.getLayout();
  authenticationGrpForHBase=new Group(parent,SWT.NONE);
  authenticationGrpForHBase.setText(Messages.getString("String_Node_Str"));
  GridDataFactory.fillDefaults().span(parentLayout.numColumns,1).align(SWT.FILL,SWT.BEGINNING).grab(true,false).applyTo(authenticationGrpForHBase);
  GridLayout authLayout=new GridLayout(4,false);
  authLayout.marginHeight=0;
  authenticationGrpForHBase.setLayout(authLayout);
  useKerberosForHBase=new Button(authenticationGrpForHBase,SWT.CHECK);
  useKerberosForHBase.setText(Messages.getString("String_Node_Str"));
  GridData data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useKerberosForHBase.setLayoutData(data);
  authenticationComForHBase=new Composite(authenticationGrpForHBase,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationComForHBase.setLayoutData(data);
  authenticationComForHBase.setLayout(new GridLayout(3,false));
  hbaseMasterPrincipalTxt=new LabelledText(authenticationComForHBase,Messages.getString("String_Node_Str"),2);
  hbaseRSPrincipalTxt=new LabelledText(authenticationComForHBase,Messages.getString("String_Node_Str"),2);
  useKeyTabForHBase=new Button(authenticationComForHBase,SWT.CHECK);
  useKeyTabForHBase.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useKeyTabForHBase.setLayoutData(data);
  keyTabCompoisteForHBase=new Composite(authenticationComForHBase,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  data.exclude=true;
  keyTabCompoisteForHBase.setLayoutData(data);
  keyTabCompoisteForHBase.setVisible(false);
  keyTabCompoisteForHBase.setLayout(new GridLayout(5,false));
  principalForHBaseTxt=new LabelledText(keyTabCompoisteForHBase,Messages.getString("String_Node_Str"),1);
  String[] extensions={"String_Node_Str"};
  keytabForHBaseTxt=new LabelledFileField(keyTabCompoisteForHBase,Messages.getString("String_Node_Str"),extensions);
  useMaprTForHBase=new Button(authenticationGrpForHBase,SWT.CHECK);
  useMaprTForHBase.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useMaprTForHBase.setLayoutData(data);
  authenticationMaprTComForHBase=new Composite(authenticationGrpForHBase,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationMaprTComForHBase.setLayoutData(data);
  authenticationMaprTComForHBase.setLayout(new GridLayout(3,false));
  authenticationUserPassComForHBase=new Composite(authenticationMaprTComForHBase,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationUserPassComForHBase.setLayoutData(data);
  authenticationUserPassComForHBase.setLayout(new GridLayout(3,false));
  maprTUsernameForHBaseTxt=new LabelledText(authenticationUserPassComForHBase,Messages.getString("String_Node_Str"),2);
  maprTPasswordForHBaseTxt=new LabelledText(authenticationUserPassComForHBase,Messages.getString("String_Node_Str"),2,SWT.PASSWORD);
  maprTClusterForHBaseTxt=new LabelledText(authenticationMaprTComForHBase,Messages.getString("String_Node_Str"),2);
  maprTDurationForHBaseTxt=new LabelledText(authenticationMaprTComForHBase,Messages.getString("String_Node_Str"),2);
  addListenerHBaseAuthentication();
  initForHBaseAuthentication();
}

Fixed version (ground truth):
private void createAuthenticationForHBase(Composite parent){
  GridLayout parentLayout=(GridLayout)parent.getLayout();
  authenticationGrpForHBase=new Group(parent,SWT.NONE);
  authenticationGrpForHBase.setText(Messages.getString("String_Node_Str"));
  GridDataFactory.fillDefaults().span(parentLayout.numColumns,1).align(SWT.FILL,SWT.BEGINNING).grab(true,false).applyTo(authenticationGrpForHBase);
  GridLayout authLayout=new GridLayout(4,false);
  authLayout.marginHeight=0;
  authenticationGrpForHBase.setLayout(authLayout);
  useKerberosForHBase=new Button(authenticationGrpForHBase,SWT.CHECK);
  useKerberosForHBase.setText(Messages.getString("String_Node_Str"));
  GridData data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useKerberosForHBase.setLayoutData(data);
  authenticationComForHBase=new Composite(authenticationGrpForHBase,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationComForHBase.setLayoutData(data);
  authenticationComForHBase.setLayout(new GridLayout(3,false));
  hbaseMasterPrincipalTxt=new LabelledText(authenticationComForHBase,Messages.getString("String_Node_Str"),2);
  hbaseRSPrincipalTxt=new LabelledText(authenticationComForHBase,Messages.getString("String_Node_Str"),2);
  useKeyTabForHBase=new Button(authenticationComForHBase,SWT.CHECK);
  useKeyTabForHBase.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useKeyTabForHBase.setLayoutData(data);
  keyTabCompoisteForHBase=new Composite(authenticationComForHBase,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  data.exclude=true;
  keyTabCompoisteForHBase.setLayoutData(data);
  keyTabCompoisteForHBase.setVisible(false);
  keyTabCompoisteForHBase.setLayout(new GridLayout(5,false));
  principalForHBaseTxt=new LabelledText(keyTabCompoisteForHBase,Messages.getString("String_Node_Str"),1);
  String[] extensions={"String_Node_Str"};
  keytabForHBaseTxt=new LabelledFileField(keyTabCompoisteForHBase,Messages.getString("String_Node_Str"),extensions);
  useMaprTForHBase=new Button(authenticationGrpForHBase,SWT.CHECK);
  useMaprTForHBase.setText(Messages.getString("String_Node_Str"));
  data=new GridData(GridData.FILL_HORIZONTAL);
  data.horizontalSpan=4;
  useMaprTForHBase.setLayoutData(data);
  authenticationMaprTComForHBase=new Composite(authenticationGrpForHBase,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationMaprTComForHBase.setLayoutData(data);
  authenticationMaprTComForHBase.setLayout(new GridLayout(3,false));
  authenticationUserPassComForHBase=new Composite(authenticationMaprTComForHBase,SWT.NONE);
  data=new GridData(GridData.FILL_BOTH);
  data.horizontalSpan=4;
  authenticationUserPassComForHBase.setLayoutData(data);
  authenticationUserPassComForHBase.setLayout(new GridLayout(3,false));
  maprTUsernameForHBaseTxt=new LabelledText(authenticationUserPassComForHBase,Messages.getString("String_Node_Str"),2);
  maprTPasswordForHBaseTxt=new LabelledText(authenticationUserPassComForHBase,Messages.getString("String_Node_Str"),2,SWT.PASSWORD | SWT.BORDER | SWT.SINGLE);
  maprTPasswordForHBaseTxt.getTextControl().setEchoChar('*');
  maprTClusterForHBaseTxt=new LabelledText(authenticationMaprTComForHBase,Messages.getString("String_Node_Str"),2);
  maprTDurationForHBaseTxt=new LabelledText(authenticationMaprTComForHBase,Messages.getString("String_Node_Str"),2);
  addListenerHBaseAuthentication();
  initForHBaseAuthentication();
}