Program: 47429
Project: 47429
Buggy source:
/** 
 */
private void applyPanel(){
  ArrayList<RequestBuilder> requestBuilders=new ArrayList<RequestBuilder>();
  for (int i=0; i < propertyTabs.getTabCount(); i++) {
    Widget w=propertyTabs.getTab(i).getContent();
    if (w instanceof IFileModifier) {
      if (((IFileModifier)w).prepareRequests() != null) {
        requestBuilders.addAll(((IFileModifier)w).prepareRequests());
      }
    }
  }
  RequestCallback requestCallback;
  for (int i=0; i <= requestBuilders.size() - 1; i++) {
    RequestBuilder requestBuilder=requestBuilders.get(i);
    if (i < requestBuilders.size() - 1) {
      final RequestBuilder nextRequest=requestBuilders.get(i + 1);
      requestCallback=new ChainedRequestCallback(nextRequest);
    }
 else {
      requestCallback=new RequestCallback(){
        @Override public void onError(        Request arg0,        Throwable arg1){
          MessageDialogBox dialogBox=new MessageDialogBox(Messages.getString("String_Node_Str"),arg1.toString(),false,false,true);
          dialogBox.center();
        }
        @Override public void onResponseReceived(        Request arg0,        Response arg1){
          if (arg1.getStatusCode() == Response.SC_OK) {
            dirty=false;
            PerspectiveManager.getInstance().setPerspective(PerspectiveManager.BROWSER_PERSPECTIVE);
            GenericEvent ge=new GenericEvent();
            ge.setEventSubType("String_Node_Str");
            ge.setStringParam(parentPath);
            EventBusUtil.EVENT_BUS.fireEvent(ge);
          }
 else {
            MessageDialogBox dialogBox=new MessageDialogBox(Messages.getString("String_Node_Str"),arg1.toString(),false,false,true);
            dialogBox.center();
          }
        }
      }
;
    }
    requestBuilder.setCallback(requestCallback);
  }
  try {
    requestBuilders.get(0).send();
  }
 catch (  RequestException e) {
  }
}

Fixed version (ground truth):
/** 
 */
private void applyPanel(){
  ArrayList<RequestBuilder> requestBuilders=new ArrayList<RequestBuilder>();
  for (int i=0; i < propertyTabs.getTabCount(); i++) {
    Widget w=propertyTabs.getTab(i).getContent();
    if (w instanceof IFileModifier) {
      if (((IFileModifier)w).prepareRequests() != null) {
        requestBuilders.addAll(((IFileModifier)w).prepareRequests());
      }
    }
  }
  RequestCallback requestCallback;
  for (int i=0; i <= requestBuilders.size() - 1; i++) {
    RequestBuilder requestBuilder=requestBuilders.get(i);
    if (i < requestBuilders.size() - 1) {
      final RequestBuilder nextRequest=requestBuilders.get(i + 1);
      nextRequest.setHeader("String_Node_Str","String_Node_Str");
      requestCallback=new ChainedRequestCallback(nextRequest);
    }
 else {
      requestCallback=new RequestCallback(){
        @Override public void onError(        Request arg0,        Throwable arg1){
          MessageDialogBox dialogBox=new MessageDialogBox(Messages.getString("String_Node_Str"),arg1.toString(),false,false,true);
          dialogBox.center();
        }
        @Override public void onResponseReceived(        Request arg0,        Response arg1){
          if (arg1.getStatusCode() == Response.SC_OK) {
            dirty=false;
            PerspectiveManager.getInstance().setPerspective(PerspectiveManager.BROWSER_PERSPECTIVE);
            GenericEvent ge=new GenericEvent();
            ge.setEventSubType("String_Node_Str");
            ge.setStringParam(parentPath);
            EventBusUtil.EVENT_BUS.fireEvent(ge);
          }
 else {
            MessageDialogBox dialogBox=new MessageDialogBox(Messages.getString("String_Node_Str"),arg1.toString(),false,false,true);
            dialogBox.center();
          }
        }
      }
;
    }
    requestBuilder.setCallback(requestCallback);
  }
  try {
    requestBuilders.get(0).send();
  }
 catch (  RequestException e) {
  }
}