nus-yam/ex-repair huggingface dataset:
Program: 121797
Project: 121797
Buggy source:
@Override public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
        final PreferenceDialog dialog=new ProjectSettingsPreferenceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getNodeManager());
        BusyIndicator.showWhile(Display.getCurrent(),new Runnable(){
          @Override public void run(){
            dialog.create();
            dialog.getShell().setText("String_Node_Str");
            dialog.getShell().setSize(DEFAULT_SIZE);
            dialog.open();
          }
        }
);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
        ProjectSettingDialog dialog=new ProjectSettingDialog();
        dialog.open();
      }
    }
  }
}
Program: 121798
Project: 121798
Buggy source:
@Override public IProcess getProcessFromItem(Item item,boolean loadScreenshots){
  if ("String_Node_Str".equals(item.eClass().getName())) {
    Process process=null;
    process=new Process(item.getProperty());
    process.loadXmlFile(loadScreenshots);
    return process;
  }
  return null;
}

Fixed version (ground truth):
@Override public IProcess getProcessFromItem(Item item,boolean loadScreenshots){
  if (ProcessItemImpl.class == item.getClass()) {
    Process process=null;
    process=new Process(item.getProperty());
    process.loadXmlFile(loadScreenshots);
    return process;
  }
  return null;
}
Program: 121799
Project: 121799
Buggy source:
public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
        final PreferenceDialog dialog=new ProjectSettingsPreferenceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getNodeManager());
        BusyIndicator.showWhile(Display.getCurrent(),new Runnable(){
          @Override public void run(){
            dialog.create();
            dialog.getShell().setText("String_Node_Str");
            dialog.getShell().setSize(DEFAULT_SIZE);
            dialog.open();
          }
        }
);
      }
    }
  }
}

Fixed version (ground truth):
public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
        ProjectSettingDialog dialog=new ProjectSettingDialog();
        dialog.open();
      }
    }
  }
}
Program: 121800
Project: 121800
Buggy source:
public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
        final PreferenceDialog dialog=new ProjectSettingsPreferenceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getNodeManager());
        BusyIndicator.showWhile(Display.getCurrent(),new Runnable(){
          @Override public void run(){
            dialog.create();
            dialog.getShell().setText("String_Node_Str");
            dialog.getShell().setSize(DEFAULT_SIZE);
            dialog.open();
          }
        }
);
      }
    }
  }
}

Fixed version (ground truth):
public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
        ProjectSettingDialog dialog=new ProjectSettingDialog();
        dialog.open();
      }
    }
  }
}
Program: 121801
Project: 121801
Buggy source:
@Override public IProcess getProcessFromItem(Item item,boolean loadScreenshots){
  if (ProcessItem.class.equals(item.getClass())) {
    Process process=null;
    process=new Process(item.getProperty());
    process.loadXmlFile(loadScreenshots);
    return process;
  }
  return null;
}

Fixed version (ground truth):
@Override public IProcess getProcessFromItem(Item item,boolean loadScreenshots){
  if ("String_Node_Str".equals(item.eClass().getName())) {
    Process process=null;
    process=new Process(item.getProperty());
    process.loadXmlFile(loadScreenshots);
    return process;
  }
  return null;
}
Program: 121805
Project: 121805
Buggy source:
public boolean performFinish(){
  boolean ok=false;
  try {
    IWorkbenchPage page=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    DiagramResourceManager diagramResourceManager=new DiagramResourceManager(page,new NullProgressMonitor());
    file=diagramResourceManager.createDiagramFile();
    isUpdate=isUpdate();
    if (isUpdate) {
      assginVlaues(oldProperty,property);
      repositoryFactory.save(oldBusinessProcessItem);
      businessProcessItem=oldBusinessProcessItem;
    }
 else {
      property.setId(repositoryFactory.getNextId());
      diagramResourceManager.updateFromResource(businessProcessItem,file);
      BusinessProcess businessProcess=BusinessFactory.eINSTANCE.createBusinessProcess();
      businessProcessItem.setSemantic(businessProcess);
      repositoryFactory.create(businessProcessItem,mainPage.getDestinationPath());
    }
    ok=true;
  }
 catch (  Exception e) {
    MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str" + e.getMessage());
    ExceptionHandler.process(e);
  }
  return ok;
}

Fixed version (ground truth):
public boolean performFinish(){
  boolean ok=false;
  try {
    IWorkbenchPage page=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    DiagramResourceManager diagramResourceManager=new DiagramResourceManager(page,new NullProgressMonitor());
    file=diagramResourceManager.createDiagramFile();
    isUpdate=isUpdate();
    if (isUpdate) {
      update();
    }
 else {
      property.setId(repositoryFactory.getNextId());
      diagramResourceManager.updateFromResource(businessProcessItem,file);
      BusinessProcess businessProcess=BusinessFactory.eINSTANCE.createBusinessProcess();
      businessProcessItem.setSemantic(businessProcess);
      repositoryFactory.create(businessProcessItem,mainPage.getDestinationPath());
    }
    ok=true;
  }
 catch (  Exception e) {
    MessageDialog.openError(getShell(),"String_Node_Str","String_Node_Str" + "String_Node_Str" + e.getMessage());
    ExceptionHandler.process(e);
  }
  return ok;
}
Program: 121807
Project: 121807
Buggy source:
protected String getHandledField(String field){
  return getHandledField(field,false);
}

Fixed version (ground truth):
@Override protected String getHandledField(String field){
  return getHandledField(field,false);
}
Program: 121810
Project: 121810
Buggy source:
protected String getHandledField(String field){
  return getHandledField(field,false);
}

Fixed version (ground truth):
@Override protected String getHandledField(String field){
  return getHandledField(field,false);
}
Program: 121813
Project: 121813
Buggy source:
public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
      }
    }
  }
}

Fixed version (ground truth):
@Override public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
        final PreferenceDialog dialog=new ProjectSettingsPreferenceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getNodeManager());
        BusyIndicator.showWhile(Display.getCurrent(),new Runnable(){
          @Override public void run(){
            dialog.create();
            dialog.getShell().setText("String_Node_Str");
            dialog.getShell().setSize(DEFAULT_SIZE);
            dialog.open();
          }
        }
);
      }
    }
  }
}
Program: 121814
Project: 121814
Buggy source:
public void widgetDefaultSelected(SelectionEvent e){
}

Fixed version (ground truth):
@Override public void widgetDefaultSelected(SelectionEvent e){
}
Program: 121817
Project: 121817
Buggy source:
/** 
 * DOC aimingchen Comment method "setMainCompositeEnable".
 * @param enabled
 */
protected void setMainCompositeEnable(boolean enabled){
  Control[] controls=getComposite().getChildren();
  for (int i=0; i < controls.length; i++) {
    Control control=controls[i];
    if (control != topComposite) {
      if (control instanceof Composite) {
        setEditable((Composite)control,enabled);
      }
 else {
        setTextEnable(control,enabled,enabled);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * DOC aimingchen Comment method "setMainCompositeEnable".
 * @param enabled
 */
protected void setMainCompositeEnable(boolean enabled){
  Control[] controls=getComposite().getChildren();
  for (  Control control : controls) {
    if (control != topComposite) {
      if (control instanceof Composite) {
        setEditable((Composite)control,enabled);
      }
 else {
        setTextEnable(control,enabled,enabled);
      }
    }
  }
}
Program: 121818
Project: 121818
Buggy source:
@Override protected void okPressed(){
  if (noUseProjectSettingsButton.getSelection())   setOptionValue("String_Node_Str");
  if (updateProjectSettingsButton.getSelection())   setOptionValue("String_Node_Str");
  super.okPressed();
}

Fixed version (ground truth):
@Override protected void okPressed(){
  if (noUseProjectSettingsButton.getSelection()) {
    setOptionValue("String_Node_Str");
  }
  if (updateProjectSettingsButton.getSelection()) {
    setOptionValue("String_Node_Str");
  }
  super.okPressed();
}
Program: 121819
Project: 121819
Buggy source:
private void setEditable(Composite parent,boolean editable){
  Control[] children=parent.getChildren();
  for (int i=0; i < children.length; i++) {
    if (children[i] instanceof Composite) {
      setEditable((Composite)children[i],editable);
    }
 else {
      setTextEnable(children[i],editable,true);
    }
  }
}

Fixed version (ground truth):
private void setEditable(Composite parent,boolean editable){
  Control[] children=parent.getChildren();
  for (  Control element : children) {
    if (element instanceof Composite) {
      setEditable((Composite)element,editable);
    }
 else {
      setTextEnable(element,editable,true);
    }
  }
}
Program: 121820
Project: 121820
Buggy source:
public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
      }
    }
  }
}

Fixed version (ground truth):
public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
        final PreferenceDialog dialog=new ProjectSettingsPreferenceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getNodeManager());
        BusyIndicator.showWhile(Display.getCurrent(),new Runnable(){
          @Override public void run(){
            dialog.create();
            dialog.getShell().setText("String_Node_Str");
            dialog.getShell().setSize(DEFAULT_SIZE);
            dialog.open();
          }
        }
);
      }
    }
  }
}
Program: 121821
Project: 121821
Buggy source:
public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
      }
    }
  }
}

Fixed version (ground truth):
public void mouseDown(MouseEvent e){
  if (inUseProjectSettingMode(elem,section,EParameterName.STATANDLOG_USE_PROJECT_SETTINGS) || inUseProjectSettingMode(elem,section,EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS)) {
    UseProjectSettingDialog modelSelect=new UseProjectSettingDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (modelSelect.open() == UseProjectSettingDialog.OK) {
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(false);
        useProjectSettingButtonClick();
      }
      if (modelSelect.getOptionValue().equals("String_Node_Str")) {
        useProjectSetting.setSelection(true);
        useProjectSettingButtonClick();
        final PreferenceDialog dialog=new ProjectSettingsPreferenceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getNodeManager());
        BusyIndicator.showWhile(Display.getCurrent(),new Runnable(){
          @Override public void run(){
            dialog.create();
            dialog.getShell().setText("String_Node_Str");
            dialog.getShell().setSize(DEFAULT_SIZE);
            dialog.open();
          }
        }
);
      }
    }
  }
}
Program: 121823
Project: 121823
Buggy source:
public void widgetSelected(SelectionEvent event){
  Command cmd=createCommand(event);
  executeCommand(cmd);
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent event){
  Command cmd=createCommand(event);
  executeCommand(cmd);
}
Program: 121824
Project: 121824
Buggy source:
@Override public void refresh(IElementParameter param,boolean check){
  CCombo combo=(CCombo)hashCurControls.get(getParameterName(param));
  if (combo == null || combo.isDisposed()) {
    return;
  }
  updateComponentList(elem,param);
  String[] curComponentNameList=param.getListItemsDisplayName();
  String[] curComponentValueList=(String[])param.getListItemsValue();
  Object value=param.getValue();
  boolean listContainValue=false;
  int numValue=0;
  for (int i=0; i < curComponentValueList.length && !listContainValue; i++) {
    if (curComponentValueList[i].equals(value)) {
      listContainValue=true;
      numValue=i;
    }
  }
  combo.setItems(curComponentNameList);
  if (!listContainValue) {
    if (curComponentNameList.length > 0) {
      elem.setPropertyValue(getParameterName(param),curComponentValueList[0]);
      combo.setText(curComponentNameList[0]);
    }
  }
 else {
    combo.setText(curComponentNameList[numValue]);
  }
}

Fixed version (ground truth):
@Override public void refresh(IElementParameter param,boolean check){
  CCombo combo=(CCombo)hashCurControls.get(getParameterName(param));
  if (combo == null || combo.isDisposed()) {
    return;
  }
  updateComponentList(elem,param);
  String[] curComponentNameList=param.getListItemsDisplayName();
  String[] curComponentValueList=(String[])param.getListItemsValue();
  Object value=param.getValue();
  boolean listContainValue=false;
  int numValue=0;
  for (int i=0; i < curComponentValueList.length && !listContainValue; i++) {
    if (curComponentValueList[i].equals(value)) {
      listContainValue=true;
      numValue=i;
    }
  }
  combo.setItems(curComponentNameList);
  if (!listContainValue) {
    if (curComponentNameList.length > 0) {
      elem.setPropertyValue(getParameterName(param),curComponentValueList[0]);
      combo.setText(curComponentNameList[0]);
    }
  }
 else {
    combo.setText(curComponentNameList[numValue]);
  }
  if (param.isContextMode()) {
    combo.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_YELLOW));
    combo.setEnabled(false);
  }
}
Program: 121825
Project: 121825
Buggy source:
public void propertyChange(PropertyChangeEvent evt){
}

Fixed version (ground truth):
@Override public void propertyChange(PropertyChangeEvent evt){
}
Program: 121827
Project: 121827
Buggy source:
public int getCurRowSize(){
  return 0;
}

Fixed version (ground truth):
@Override public int getCurRowSize(){
  return 0;
}
Program: 121829
Project: 121829
Buggy source:
public Map<String,String> getTableIdAndDbTypeMap(){
  return null;
}

Fixed version (ground truth):
@Override public Map<String,String> getTableIdAndDbTypeMap(){
  return null;
}
Program: 121830
Project: 121830
Buggy source:
@Override protected AddPushButton createAddPushButton(){
  return new AddPushButtonForExtendedTable(toolbar,extendedTableViewer){
    @Override protected Object getObjectToAdd(){
      return null;
    }
    @Override protected Command getCommandToExecute(){
      return new Command(){
        @Override public void execute(){
          if (comboContent.size() > 0) {
            List<IElementParameter> tableInput=getTableViewerCreator().getInputList();
            IElementParameter parameter=comboContent.get(0);
            tableInput.add(parameter);
            ((IElementParameter)parameter).setContextMode(true);
            List<IElementParameter> associateParams=findRadioParamInSameGroup(comboContent,parameter);
            for (            IElementParameter param : associateParams) {
              param.setContextMode(true);
              tableInput.add(param);
            }
            refreshComboContent(AdvancedContextTableView.this,legalParameters);
            getExtendedToolbar().updateEnabledStateOfButtons();
            getTableViewerCreator().refresh();
            if (parameter.getName().equals("String_Node_Str")) {
              parameter.setReadOnly(false);
            }
          }
        }
      }
;
    }
    @Override public boolean getEnabledState(){
      if (super.getEnabledState()) {
        List<IElementParameter> inputList=getTableViewerCreator().getInputList();
        return inputList != null && inputList.size() < legalParameters.size();
      }
      return false;
    }
  }
;
}

Fixed version (ground truth):
@Override protected AddPushButton createAddPushButton(){
  return new AddPushButtonForExtendedTable(toolbar,extendedTableViewer){
    @Override protected Object getObjectToAdd(){
      return null;
    }
    @Override protected Command getCommandToExecute(){
      return new Command(){
        @Override public void execute(){
          if (comboContent.size() > 0) {
            List<IElementParameter> tableInput=getTableViewerCreator().getInputList();
            IElementParameter parameter=comboContent.get(0);
            tableInput.add(parameter);
            parameter.setContextMode(true);
            List<IElementParameter> associateParams=findRadioParamInSameGroup(comboContent,parameter);
            for (            IElementParameter param : associateParams) {
              param.setContextMode(true);
              tableInput.add(param);
            }
            refreshComboContent(AdvancedContextTableView.this,legalParameters);
            getExtendedToolbar().updateEnabledStateOfButtons();
            getTableViewerCreator().refresh();
          }
        }
      }
;
    }
    @Override public boolean getEnabledState(){
      if (super.getEnabledState()) {
        List<IElementParameter> inputList=getTableViewerCreator().getInputList();
        return inputList != null && inputList.size() < legalParameters.size();
      }
      return false;
    }
  }
;
}
Program: 121832
Project: 121832
Buggy source:
public EComponentCategory getSection(){
  return null;
}

Fixed version (ground truth):
@Override public EComponentCategory getSection(){
  return null;
}
Program: 121833
Project: 121833
Buggy source:
public Object get(IElementParameter bean){
  final Object value=bean.getValue();
  return value == null ? "String_Node_Str" : String.valueOf(value);
}

Fixed version (ground truth):
@Override public Object get(IElementParameter bean){
  final Object value=bean.getValue();
  return value == null ? "String_Node_Str" : String.valueOf(value);
}
Program: 121835
Project: 121835
Buggy source:
public void addListener(ILabelProviderListener listener){
}

Fixed version (ground truth):
@Override public void addListener(ILabelProviderListener listener){
}
Program: 121836
Project: 121836
Buggy source:
public void set(IElementParameter bean,Object value){
  if (value != null && !value.equals(bean.getValue())) {
    executeCommand(new PropertyChangeCommand((Element)node,bean.getName(),value));
    getTableViewerCreator().refresh();
  }
}

Fixed version (ground truth):
@Override public void set(IElementParameter bean,Object value){
  if (value != null && !value.equals(bean.getValue())) {
    executeCommand(new PropertyChangeCommand(node,bean.getName(),value));
    getTableViewerCreator().refresh();
  }
}
Program: 121837
Project: 121837
Buggy source:
public String getText(Object element){
  return ((IElementParameter)element).getDisplayName();
}

Fixed version (ground truth):
@Override public String getText(Object element){
  return ((IElementParameter)element).getDisplayName();
}
Program: 121838
Project: 121838
Buggy source:
public void setCurRowSize(int i){
}

Fixed version (ground truth):
@Override public void setCurRowSize(int i){
}
Program: 121839
Project: 121839
Buggy source:
public AbstractMultiPageTalendEditor getPart(){
  return null;
}

Fixed version (ground truth):
@Override public AbstractMultiPageTalendEditor getPart(){
  return null;
}
Program: 121840
Project: 121840
Buggy source:
public void removeListener(ILabelProviderListener listener){
}

Fixed version (ground truth):
@Override public void removeListener(ILabelProviderListener listener){
}
Program: 121841
Project: 121841
Buggy source:
public String getRepositoryAliasName(ConnectionItem connectionItem){
  return null;
}

Fixed version (ground truth):
@Override public String getRepositoryAliasName(ConnectionItem connectionItem){
  return null;
}
Program: 121842
Project: 121842
Buggy source:
public Map<String,String> getTableIdAndDbSchemaMap(){
  return null;
}

Fixed version (ground truth):
@Override public Map<String,String> getTableIdAndDbSchemaMap(){
  return null;
}
Program: 121843
Project: 121843
Buggy source:
@Override protected Command getCommandToExecute(){
  return new Command(){
    @Override public void execute(){
      ISelection selection=getTableViewerCreator().getTableViewer().getSelection();
      List<IElementParameter> tableViewerInput=getTableViewerCreator().getInputList();
      IElementParameter CONNECTION=null;
      if (tableViewerInput != null && tableViewerInput.size() == 1) {
        if (tableViewerInput.get(0).getName().equals("String_Node_Str")) {
          CONNECTION=tableViewerInput.get(0);
        }
      }
      boolean needRefresh=false;
      if (!selection.isEmpty() && selection instanceof StructuredSelection) {
        Object[] elements=((StructuredSelection)selection).toArray();
        for (        Object element : elements) {
          tableViewerInput.remove(element);
          removeAssociateParams(tableViewerInput,element);
          ((IElementParameter)element).setContextMode(false);
        }
        needRefresh=true;
      }
 else       if (!tableViewerInput.isEmpty()) {
        int index=tableViewerInput.size() - 1;
        final IElementParameter elementParameter=(IElementParameter)tableViewerInput.get(index);
        elementParameter.setContextMode(false);
        tableViewerInput.remove(index);
        removeAssociateParams(tableViewerInput,elementParameter);
        needRefresh=true;
      }
      if (needRefresh) {
        refreshComboContent(AdvancedContextTableView.this,legalParameters);
        getTableViewerCreator().refresh();
        getExtendedToolbar().updateEnabledStateOfButtons();
        if (CONNECTION != null && (tableViewerInput.size() <= 0)) {
          executeCommand(new PropertyChangeCommand((Element)node,CONNECTION.getName(),"String_Node_Str"));
          CONNECTION.setReadOnly(true);
        }
      }
    }
  }
;
}

Fixed version (ground truth):
@Override protected Command getCommandToExecute(){
  return new Command(){
    @Override public void execute(){
      ISelection selection=getTableViewerCreator().getTableViewer().getSelection();
      List<IElementParameter> tableViewerInput=getTableViewerCreator().getInputList();
      boolean needRefresh=false;
      if (!selection.isEmpty() && selection instanceof StructuredSelection) {
        Object[] elements=((StructuredSelection)selection).toArray();
        for (        Object element : elements) {
          tableViewerInput.remove(element);
          removeAssociateParams(tableViewerInput,element);
          ((IElementParameter)element).setContextMode(false);
        }
        needRefresh=true;
      }
 else       if (!tableViewerInput.isEmpty()) {
        int index=tableViewerInput.size() - 1;
        final IElementParameter elementParameter=tableViewerInput.get(index);
        elementParameter.setContextMode(false);
        tableViewerInput.remove(index);
        removeAssociateParams(tableViewerInput,elementParameter);
        needRefresh=true;
      }
      if (needRefresh) {
        refreshComboContent(AdvancedContextTableView.this,legalParameters);
        getTableViewerCreator().refresh();
        getExtendedToolbar().updateEnabledStateOfButtons();
      }
    }
  }
;
}
Program: 121844
Project: 121844
Buggy source:
@Override public void execute(){
  ISelection selection=getTableViewerCreator().getTableViewer().getSelection();
  List<IElementParameter> tableViewerInput=getTableViewerCreator().getInputList();
  IElementParameter CONNECTION=null;
  if (tableViewerInput != null && tableViewerInput.size() == 1) {
    if (tableViewerInput.get(0).getName().equals("String_Node_Str")) {
      CONNECTION=tableViewerInput.get(0);
    }
  }
  boolean needRefresh=false;
  if (!selection.isEmpty() && selection instanceof StructuredSelection) {
    Object[] elements=((StructuredSelection)selection).toArray();
    for (    Object element : elements) {
      tableViewerInput.remove(element);
      removeAssociateParams(tableViewerInput,element);
      ((IElementParameter)element).setContextMode(false);
    }
    needRefresh=true;
  }
 else   if (!tableViewerInput.isEmpty()) {
    int index=tableViewerInput.size() - 1;
    final IElementParameter elementParameter=(IElementParameter)tableViewerInput.get(index);
    elementParameter.setContextMode(false);
    tableViewerInput.remove(index);
    removeAssociateParams(tableViewerInput,elementParameter);
    needRefresh=true;
  }
  if (needRefresh) {
    refreshComboContent(AdvancedContextTableView.this,legalParameters);
    getTableViewerCreator().refresh();
    getExtendedToolbar().updateEnabledStateOfButtons();
    if (CONNECTION != null && (tableViewerInput.size() <= 0)) {
      executeCommand(new PropertyChangeCommand((Element)node,CONNECTION.getName(),"String_Node_Str"));
      CONNECTION.setReadOnly(true);
    }
  }
}

Fixed version (ground truth):
@Override public void execute(){
  ISelection selection=getTableViewerCreator().getTableViewer().getSelection();
  List<IElementParameter> tableViewerInput=getTableViewerCreator().getInputList();
  boolean needRefresh=false;
  if (!selection.isEmpty() && selection instanceof StructuredSelection) {
    Object[] elements=((StructuredSelection)selection).toArray();
    for (    Object element : elements) {
      tableViewerInput.remove(element);
      removeAssociateParams(tableViewerInput,element);
      ((IElementParameter)element).setContextMode(false);
    }
    needRefresh=true;
  }
 else   if (!tableViewerInput.isEmpty()) {
    int index=tableViewerInput.size() - 1;
    final IElementParameter elementParameter=tableViewerInput.get(index);
    elementParameter.setContextMode(false);
    tableViewerInput.remove(index);
    removeAssociateParams(tableViewerInput,elementParameter);
    needRefresh=true;
  }
  if (needRefresh) {
    refreshComboContent(AdvancedContextTableView.this,legalParameters);
    getTableViewerCreator().refresh();
    getExtendedToolbar().updateEnabledStateOfButtons();
  }
}
Program: 121845
Project: 121845
Buggy source:
public Composite getComposite(){
  return null;
}

Fixed version (ground truth):
@Override public Composite getComposite(){
  return null;
}
Program: 121846
Project: 121846
Buggy source:
public Element getElement(){
  return null;
}

Fixed version (ground truth):
@Override public Element getElement(){
  return null;
}
Program: 121847
Project: 121847
Buggy source:
public BidiMap getHashCurControls(){
  return null;
}

Fixed version (ground truth):
@Override public BidiMap getHashCurControls(){
  return null;
}
Program: 121848
Project: 121848
Buggy source:
public void dispose(){
}

Fixed version (ground truth):
@Override public void dispose(){
}
Program: 121849
Project: 121849
Buggy source:
public Image getImage(Object element){
  return null;
}

Fixed version (ground truth):
@Override public Image getImage(Object element){
  return null;
}
Program: 121850
Project: 121850
Buggy source:
public boolean isLabelProperty(Object element,String property){
  return false;
}

Fixed version (ground truth):
@Override public boolean isLabelProperty(Object element,String property){
  return false;
}
Program: 121854
Project: 121854
Buggy source:
@Override public IProcess getProcessFromItem(Item item,boolean loadScreenshots){
  if (item instanceof ProcessItem) {
    Process process=null;
    process=new Process(item.getProperty());
    process.loadXmlFile(loadScreenshots);
    return process;
  }
  return null;
}

Fixed version (ground truth):
@Override public IProcess getProcessFromItem(Item item,boolean loadScreenshots){
  if (ProcessItem.class.equals(item.getClass())) {
    Process process=null;
    process=new Process(item.getProperty());
    process.loadXmlFile(loadScreenshots);
    return process;
  }
  return null;
}
Program: 121855
Project: 121855
Buggy source:
private void createSendboxProject(){
  if (getConnection() != null) {
    setRepositoryContextInContext();
  }
  CreateSandboxProjectDialog sandboxDialog=new CreateSandboxProjectDialog(getShell(),getConnection());
  if (sandboxDialog.open() == Window.OK) {
    ConnectionUserPerReader instance=ConnectionUserPerReader.getInstance();
    this.storedConnections=instance.forceReadConnections();
    this.lastConnection=sandboxDialog.getConnectionBean().getName();
    PreferenceManipulator prefManipulator=new PreferenceManipulator(CorePlugin.getDefault().getPreferenceStore());
    prefManipulator.saveConnections(this.storedConnections);
    perReader.saveConnections(this.storedConnections);
    fillContents();
  }
  try {
    setStatusArea();
  }
 catch (  PersistenceException e1) {
    ExceptionHandler.process(e1);
  }
  if (getConnection() != null) {
    setRepositoryContextInContext();
  }
}

Fixed version (ground truth):
private void createSendboxProject(){
  if (getConnection() != null) {
    setRepositoryContextInContext();
  }
  CreateSandboxProjectDialog sandboxDialog=new CreateSandboxProjectDialog(getShell(),getConnection());
  if (sandboxDialog.open() == Window.OK) {
    ConnectionUserPerReader instance=ConnectionUserPerReader.getInstance();
    this.storedConnections=instance.forceReadConnections();
    this.lastConnection=sandboxDialog.getConnectionBean().getName();
    perReader.saveConnections(this.storedConnections);
    fillContents();
  }
  try {
    setStatusArea();
  }
 catch (  PersistenceException e1) {
    ExceptionHandler.process(e1);
  }
  if (getConnection() != null) {
    setRepositoryContextInContext();
  }
}
Program: 121860
Project: 121860
Buggy source:
private static void getSourceLoopsFromConnectionSource(TreeNode connectionSource,List<TreeNode> soruceLoops,InputXmlTree mainInputTree){
  InputXmlTree inputTree=(InputXmlTree)XmlMapUtil.getAbstractInOutTree(connectionSource);
  TreeNode loopParentTreeNode=null;
  if (inputTree == mainInputTree) {
    loopParentTreeNode=XmlMapUtil.getLoopParentNode((TreeNode)connectionSource);
    if (loopParentTreeNode != null) {
      soruceLoops.add(loopParentTreeNode);
    }
  }
 else {
    getLoopSourceFromLookupNode(connectionSource,mainInputTree,soruceLoops);
  }
}

Fixed version (ground truth):
private static void getSourceLoopsFromConnectionSource(TreeNode connectionSource,List<TreeNode> soruceLoops,InputXmlTree mainInputTree){
  InputXmlTree inputTree=(InputXmlTree)XmlMapUtil.getAbstractInOutTree(connectionSource);
  TreeNode loopParentTreeNode=null;
  if (inputTree == mainInputTree) {
    loopParentTreeNode=XmlMapUtil.getLoopParentNode(connectionSource);
    if (loopParentTreeNode != null) {
      soruceLoops.add(loopParentTreeNode);
    }
  }
 else {
    getLoopSourceFromLookupNode(connectionSource,mainInputTree,soruceLoops);
  }
}
Program: 121866
Project: 121866
Buggy source:
public GuessSchemaProcess(Property property,INode node,IContext selectContext,String memoSQL,DbInfo info){
  this.property=property;
  this.node=node;
  this.selectContext=selectContext;
  this.memoSQL=memoSQL.replace("String_Node_Str","String_Node_Str");
  this.info=info;
  this.conn=info.getConn();
  initOutpath();
}

Fixed version (ground truth):
public GuessSchemaProcess(Property property,INode node,IContext selectContext,String memoSQL,DbInfo info,IProcess originalProcess){
  this.property=property;
  this.node=node;
  this.selectContext=selectContext;
  this.memoSQL=memoSQL.replace("String_Node_Str","String_Node_Str");
  this.info=info;
  this.conn=info.getConn();
  this.originalProcess=originalProcess;
  initOutpath();
}
Program: 121873
Project: 121873
Buggy source:
public GuessSchemaProcess(Property property,INode node,IContext selectContext,String memoSQL,DbInfo info){
  this.property=property;
  this.node=node;
  this.selectContext=selectContext;
  this.memoSQL=memoSQL.replace("String_Node_Str","String_Node_Str");
  this.info=info;
  this.conn=info.getConn();
  initOutpath();
}

Fixed version (ground truth):
public GuessSchemaProcess(Property property,INode node,IContext selectContext,String memoSQL,DbInfo info,IProcess originalProcess){
  this.property=property;
  this.node=node;
  this.selectContext=selectContext;
  this.memoSQL=memoSQL.replace("String_Node_Str","String_Node_Str");
  this.info=info;
  this.conn=info.getConn();
  this.originalProcess=originalProcess;
  initOutpath();
}
Program: 121877
Project: 121877
Buggy source:
public void selectTab(final EComponentCategory category){
  if (tabFactory.getSelection().getCategory().equals(category)) {
    return;
  }
  List<TalendPropertyTabDescriptor> allTabs=tabFactory.getInput();
  final List<TalendPropertyTabDescriptor> selection=new ArrayList<TalendPropertyTabDescriptor>();
  for (  TalendPropertyTabDescriptor talendPropertyTabDescriptor : allTabs) {
    if (talendPropertyTabDescriptor.getCategory().equals(category)) {
      selection.add(talendPropertyTabDescriptor);
    }
  }
  tabFactory.setSelection(new StructuredSelection(){
    public List toList(){
      return selection;
    }
  }
);
}

Fixed version (ground truth):
public void selectTab(final EComponentCategory category){
  if (tabFactory.getSelection().getCategory().equals(category)) {
    return;
  }
  List<TalendPropertyTabDescriptor> allTabs=tabFactory.getInput();
  final List<TalendPropertyTabDescriptor> selection=new ArrayList<TalendPropertyTabDescriptor>();
  for (  TalendPropertyTabDescriptor talendPropertyTabDescriptor : allTabs) {
    if (talendPropertyTabDescriptor.getCategory().equals(category)) {
      selection.add(talendPropertyTabDescriptor);
    }
  }
  tabFactory.setSelection(new StructuredSelection(){
    @Override public List toList(){
      return selection;
    }
  }
);
}
Program: 121878
Project: 121878
Buggy source:
public List toList(){
  return selection;
}

Fixed version (ground truth):
@Override public List toList(){
  return selection;
}
Program: 121879
Project: 121879
Buggy source:
public void cleanDisplay(){
  tabFactory.setInput(null);
  tabFactory.setTitle(null,null);
  tabFactory.getTabbedPropertyComposite().getComposite().setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
  tabFactory.getTabbedPropertyComposite().getCompactButton().setVisible(false);
  tabFactory.getTabbedPropertyComposite().getTableButton().setVisible(false);
  if (tabFactory.getTabComposite() != null) {
    for (    Control curControl : tabFactory.getTabComposite().getChildren()) {
      curControl.dispose();
    }
  }
  this.element=null;
  cleaned=true;
  selectedPrimary=true;
}

Fixed version (ground truth):
@Override public void cleanDisplay(){
  tabFactory.setInput(null);
  tabFactory.setTitle(null,null);
  tabFactory.getTabbedPropertyComposite().getComposite().setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
  tabFactory.getTabbedPropertyComposite().getCompactButton().setVisible(false);
  tabFactory.getTabbedPropertyComposite().getTableButton().setVisible(false);
  if (tabFactory.getTabComposite() != null) {
    for (    Control curControl : tabFactory.getTabComposite().getChildren()) {
      curControl.dispose();
    }
  }
  this.element=null;
  cleaned=true;
  selectedPrimary=true;
}
Program: 121880
Project: 121880
Buggy source:
public void widgetDefaultSelected(SelectionEvent e){
}

Fixed version (ground truth):
@Override public void widgetDefaultSelected(SelectionEvent e){
}
Program: 121881
Project: 121881
Buggy source:
public Iterator iterator(){
  return null;
}

Fixed version (ground truth):
@Override public Iterator iterator(){
  return null;
}
Program: 121882
Project: 121882
Buggy source:
public Object[] toArray(){
  return null;
}

Fixed version (ground truth):
@Override public Object[] toArray(){
  return null;
}
Program: 121883
Project: 121883
Buggy source:
public void setElement(Element elem){
  if (currentSelectedTab != null && currentSelectedTab.getData().equals(elem) && !cleaned) {
    return;
  }
  EComponentCategory[] categories=getCategories(elem);
  final List<TalendPropertyTabDescriptor> descriptors=new ArrayList<TalendPropertyTabDescriptor>();
  for (  EComponentCategory category : categories) {
    TalendPropertyTabDescriptor d=new TalendPropertyTabDescriptor(category);
    d.setData(elem);
    descriptors.add(d);
  }
  tabFactory.setInput(descriptors);
  setPropertiesViewerTitle(elem);
  cleaned=false;
  tabFactory.setSelection(new IStructuredSelection(){
    public Object getFirstElement(){
      return null;
    }
    public Iterator iterator(){
      return null;
    }
    public int size(){
      return 0;
    }
    public Object[] toArray(){
      return null;
    }
    public List toList(){
      List<TalendPropertyTabDescriptor> d=new ArrayList<TalendPropertyTabDescriptor>();
      if (descriptors.size() > 0) {
        if (currentSelectedTab != null) {
          for (          TalendPropertyTabDescriptor ds : descriptors) {
            if (ds.getCategory() == currentSelectedTab.getCategory()) {
              d.add(ds);
              return d;
            }
          }
        }
        d.add(descriptors.get(0));
      }
      return d;
    }
    public boolean isEmpty(){
      return false;
    }
  }
);
}

Fixed version (ground truth):
@Override public void setElement(Element elem){
  if (currentSelectedTab != null && currentSelectedTab.getData().equals(elem) && !cleaned) {
    return;
  }
  EComponentCategory[] categories=getCategories(elem);
  final List<TalendPropertyTabDescriptor> descriptors=new ArrayList<TalendPropertyTabDescriptor>();
  for (  EComponentCategory category : categories) {
    TalendPropertyTabDescriptor d=new TalendPropertyTabDescriptor(category);
    d.setData(elem);
    descriptors.add(d);
  }
  tabFactory.setInput(descriptors);
  setPropertiesViewerTitle(elem);
  cleaned=false;
  tabFactory.setSelection(new IStructuredSelection(){
    @Override public Object getFirstElement(){
      return null;
    }
    @Override public Iterator iterator(){
      return null;
    }
    @Override public int size(){
      return 0;
    }
    @Override public Object[] toArray(){
      return null;
    }
    @Override public List toList(){
      List<TalendPropertyTabDescriptor> d=new ArrayList<TalendPropertyTabDescriptor>();
      if (descriptors.size() > 0) {
        if (currentSelectedTab != null) {
          for (          TalendPropertyTabDescriptor ds : descriptors) {
            if (ds.getCategory() == currentSelectedTab.getCategory()) {
              d.add(ds);
              return d;
            }
          }
        }
        d.add(descriptors.get(0));
      }
      return d;
    }
    @Override public boolean isEmpty(){
      return false;
    }
  }
);
}
Program: 121884
Project: 121884
Buggy source:
public void widgetSelected(SelectionEvent e){
  tabFactory.getTabbedPropertyComposite().setCompactView(false);
  getPreference().setValue(TalendDesignerPrefConstants.VIEW_OPTIONS,ComponentSettingsView.TABLEVIEW);
  tabFactory.getTabbedPropertyComposite().getCompactButton().setImage(ImageProvider.getImage(EImage.NO_COMPACT_VIEW));
  tabFactory.getTabbedPropertyComposite().getTableButton().setImage(ImageProvider.getImage(EImage.TABLE_VIEW));
  if (getDc() != null) {
    getDc().dispose();
    if (getParentMap().get(ComponentSettingsView.PARENT) != null && getCategoryMap().get(ComponentSettingsView.CATEGORY) != null) {
      dc=new MultipleThreadDynamicComposite(getParentMap().get(ComponentSettingsView.PARENT),SWT.H_SCROLL | SWT.V_SCROLL | SWT.NO_FOCUS,getCategoryMap().get(ComponentSettingsView.CATEGORY),element,false);
      dc.refresh();
    }
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  tabFactory.getTabbedPropertyComposite().setCompactView(false);
  getPreference().setValue(TalendDesignerPrefConstants.VIEW_OPTIONS,ComponentSettingsView.TABLEVIEW);
  tabFactory.getTabbedPropertyComposite().getCompactButton().setImage(ImageProvider.getImage(EImage.NO_COMPACT_VIEW));
  tabFactory.getTabbedPropertyComposite().getTableButton().setImage(ImageProvider.getImage(EImage.TABLE_VIEW));
  if (getDc() != null) {
    getDc().dispose();
    if (getParentMap().get(ComponentSettingsView.PARENT) != null && getCategoryMap().get(ComponentSettingsView.CATEGORY) != null) {
      dc=new MultipleThreadDynamicComposite(getParentMap().get(ComponentSettingsView.PARENT),SWT.H_SCROLL | SWT.V_SCROLL | SWT.NO_FOCUS,getCategoryMap().get(ComponentSettingsView.CATEGORY),element,false);
      dc.refresh();
    }
  }
}
Program: 121885
Project: 121885
Buggy source:
public boolean isEmpty(){
  return false;
}

Fixed version (ground truth):
@Override public boolean isEmpty(){
  return false;
}
Program: 121887
Project: 121887
Buggy source:
public int size(){
  return 0;
}

Fixed version (ground truth):
@Override public int size(){
  return 0;
}