Program: 62271
Project: 62271
Buggy source:
/** 
 * @wbp.parser.entryPoint
 */
@Override protected void initTTLTabItem(TabFolder tabFolder){
  super.initTTLTabItem(tabFolder);
  new Label(ttlComposite,SWT.NONE);
  Composite composite=new Composite(ttlComposite,SWT.NONE);
  composite.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER,true,false,1,1));
  composite.setLayout(new GridLayout(2,false));
  btnApply=new Button(composite,SWT.NONE);
  btnApply.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      try {
        service.expire(id,db,key,getTTL());
      }
 catch (      KeyNotExistException e1) {
        setTTLApply(false);
        throw e1;
      }
    }
  }
);
  btnApply.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER,false,false,1,1));
  btnApply.setText(RedisClient.i18nFile.getText(I18nFile.APPLY));
  setTTLApply(false);
  btnRefresh=new Button(composite,SWT.NONE);
  btnRefresh.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER,false,false,1,1));
  btnRefresh.setText(RedisClient.i18nFile.getText(I18nFile.REFRESH));
  btnRefresh.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      try {
        setTTL((int)service.getTTL(id,db,key));
      }
 catch (      KeyNotExistException e1) {
        setTTLApply(false);
        throw e1;
      }
    }
  }
);
  btnExpire.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (btnExpire.getSelection()) {
        labelTTL.setEnabled(true);
        ttl.setEnabled(true);
        ttl.selectAll();
        ttl.setFocus();
        setTTLApply(true);
      }
 else {
        labelTTL.setEnabled(false);
        ttl.setEnabled(false);
        setTTLApply(true);
      }
    }
  }
);
  ttl.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setTTLApply(true);
    }
  }
);
  setTTL((int)service.getTTL(id,db,key));
}

Fixed version (ground truth):
/** 
 * @wbp.parser.entryPoint
 */
@Override protected void initTTLTabItem(TabFolder tabFolder){
  super.initTTLTabItem(tabFolder);
  new Label(ttlComposite,SWT.NONE);
  Composite composite=new Composite(ttlComposite,SWT.NONE);
  composite.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER,true,false,1,1));
  composite.setLayout(new GridLayout(2,false));
  btnApply=new Button(composite,SWT.NONE);
  btnApply.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      try {
        service.expire(id,db,key,getTTL());
      }
  finally {
        setTTLApply(false);
      }
    }
  }
);
  btnApply.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER,false,false,1,1));
  btnApply.setText(RedisClient.i18nFile.getText(I18nFile.APPLY));
  setTTLApply(false);
  btnRefresh=new Button(composite,SWT.NONE);
  btnRefresh.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER,false,false,1,1));
  btnRefresh.setText(RedisClient.i18nFile.getText(I18nFile.REFRESH));
  btnRefresh.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      try {
        setTTL((int)service.getTTL(id,db,key));
      }
  finally {
        setTTLApply(false);
      }
    }
  }
);
  btnExpire.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (btnExpire.getSelection()) {
        labelTTL.setEnabled(true);
        ttl.setEnabled(true);
        ttl.selectAll();
        ttl.setFocus();
        setTTLApply(true);
      }
 else {
        labelTTL.setEnabled(false);
        ttl.setEnabled(false);
        setTTLApply(true);
      }
    }
  }
);
  ttl.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      setTTLApply(true);
    }
  }
);
  setTTL((int)service.getTTL(id,db,key));
}