Program: 51839
Project: 51839
Buggy source:
@SuppressWarnings("String_Node_Str") public void init(com.google.gwt.xml.client.Element srcEle,XulDomContainer container){
  mainPanel=new VerticalPanel();
  setManagedObject(mainPanel);
  super.init(srcEle,container);
  if (!StringUtils.isEmpty(srcEle.getAttribute("String_Node_Str"))) {
    setAction(buildActionUrl(GWT.getModuleBaseURL(),srcEle.getAttribute("String_Node_Str")));
  }
  if (!StringUtils.isEmpty(srcEle.getAttribute("String_Node_Str"))) {
    setOnUploadSuccess(srcEle.getAttribute("String_Node_Str"));
  }
  if (!StringUtils.isEmpty(srcEle.getAttribute("String_Node_Str"))) {
    setOnUploadFailure(srcEle.getAttribute("String_Node_Str"));
  }
  uploadForm=new FormPanel();
  uploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);
  uploadForm.setMethod(FormPanel.METHOD_POST);
  uploadForm.setHeight(getHeight() + "String_Node_Str");
  uploadForm.setWidth(getWidth() + "String_Node_Str");
  HorizontalPanel panel=new HorizontalPanel();
  uploadForm.setWidget(panel);
  uploadForm.setVisible(true);
  upload=new FileUpload();
  upload.setName("String_Node_Str");
  upload.setVisible(true);
  upload.setHeight(getHeight() + "String_Node_Str");
  upload.setWidth(getWidth() + "String_Node_Str");
  upload.addChangeHandler(new ChangeHandler(){
    public void onChange(    ChangeEvent event){
      setSelectedFile(upload.getFilename());
    }
  }
);
  uploadPanel=new VerticalPanel();
  String uploadButtonImage=srcEle.getAttribute("String_Node_Str");
  String uploadButtonDisabledImage=srcEle.getAttribute("String_Node_Str");
  hiddenPanel=new HTMLPanel("String_Node_Str");
  uploadTextBox=new GwtTextbox();
  uploadTextBox.setId("String_Node_Str");
  uploadTextBox.setHeight(getHeight());
  uploadTextBox.setWidth(getWidth() - 45);
  GwtButton uploadButton=new GwtButton();
  uploadButton.setId("String_Node_Str");
  uploadButton.setHeight(22);
  if (StringUtils.isEmpty(uploadButtonImage)) {
    uploadButton.setLabel("String_Node_Str");
    hiddenPanel.add((Widget)uploadTextBox.getManagedObject(),"String_Node_Str");
    uploadTextBox.layout();
  }
 else {
    uploadButton.setImage(uploadButtonImage);
    uploadButton.setDisabledImage(uploadButtonDisabledImage);
  }
  hiddenPanel.add((Widget)uploadButton.getManagedObject(),"String_Node_Str");
  uploadButton.layout();
  hiddenPanel.add(upload,"String_Node_Str");
  uploadPanel.add(hiddenPanel);
  panel.add(uploadPanel);
  mainPanel.add(uploadForm);
  if (getHeight() >= 0) {
    mainPanel.setHeight(getHeight() + "String_Node_Str");
  }
  if (getWidth() >= 0) {
    mainPanel.setWidth(getWidth() + "String_Node_Str");
  }
  uploadForm.addFormHandler(new FormHandler(){
    public void onSubmit(    FormSubmitEvent event){
      if (upload.getFilename() == null) {
        try {
          GwtFileUpload.this.getXulDomContainer().invoke(getOnUploadFailure(),new Object[]{new Throwable("String_Node_Str")});
          return;
        }
 catch (        XulException e) {
          e.printStackTrace();
        }
      }
    }
    public void onSubmitComplete(    FormSubmitCompleteEvent event){
      String results=event.getResults();
      try {
        if (results != null && results.indexOf(ERROR) >= 0) {
          if (results.indexOf(ERROR) + ERROR.length() < results.length()) {
            String result=results.replaceAll("String_Node_Str","String_Node_Str");
            GwtFileUpload.this.getXulDomContainer().invoke(getOnUploadFailure(),new Object[]{new Throwable(result)});
          }
        }
 else {
          if (results != null) {
            String result=results.replaceAll("String_Node_Str","String_Node_Str");
            GwtFileUpload.this.getXulDomContainer().invoke(getOnUploadSuccess(),new Object[]{result});
          }
 else {
            GwtFileUpload.this.getXulDomContainer().invoke(getOnUploadFailure(),new Object[]{new Throwable("String_Node_Str")});
          }
        }
      }
 catch (      XulException xule) {
        xule.printStackTrace();
      }
    }
  }
);
  uploadForm.setWidth("String_Node_Str");
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void init(com.google.gwt.xml.client.Element srcEle,XulDomContainer container){
  mainPanel=new VerticalPanel();
  setManagedObject(mainPanel);
  super.init(srcEle,container);
  if (!StringUtils.isEmpty(srcEle.getAttribute("String_Node_Str"))) {
    setAction(buildActionUrl(GWT.getModuleBaseURL(),srcEle.getAttribute("String_Node_Str")));
  }
  if (!StringUtils.isEmpty(srcEle.getAttribute("String_Node_Str"))) {
    setOnUploadSuccess(srcEle.getAttribute("String_Node_Str"));
  }
  if (!StringUtils.isEmpty(srcEle.getAttribute("String_Node_Str"))) {
    setOnUploadFailure(srcEle.getAttribute("String_Node_Str"));
  }
  uploadForm=new FormPanel();
  uploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);
  uploadForm.setMethod(FormPanel.METHOD_POST);
  uploadForm.setHeight(getHeight() + "String_Node_Str");
  uploadForm.setWidth(getWidth() + "String_Node_Str");
  HorizontalPanel panel=new HorizontalPanel();
  uploadForm.setWidget(panel);
  uploadForm.setVisible(true);
  upload=new FileUpload();
  upload.setStylePrimaryName("String_Node_Str");
  upload.setName("String_Node_Str");
  upload.setVisible(true);
  upload.setHeight(getHeight() + "String_Node_Str");
  upload.setWidth(getWidth() + "String_Node_Str");
  upload.addChangeHandler(new ChangeHandler(){
    public void onChange(    ChangeEvent event){
      setSelectedFile(upload.getFilename());
    }
  }
);
  uploadPanel=new VerticalPanel();
  String uploadButtonImage=srcEle.getAttribute("String_Node_Str");
  String uploadButtonDisabledImage=srcEle.getAttribute("String_Node_Str");
  hiddenPanel=new HTMLPanel("String_Node_Str");
  uploadTextBox=new GwtTextbox();
  uploadTextBox.setId("String_Node_Str");
  uploadTextBox.setHeight(getHeight());
  uploadTextBox.setWidth(getWidth() - 50);
  GwtButton uploadButton=new GwtButton();
  uploadButton.setId("String_Node_Str");
  uploadButton.setHeight(22);
  if (StringUtils.isEmpty(uploadButtonImage)) {
    uploadButton.setLabel("String_Node_Str");
    hiddenPanel.add((Widget)uploadTextBox.getManagedObject(),"String_Node_Str");
    uploadTextBox.layout();
  }
 else {
    uploadButton.setImage(uploadButtonImage);
    uploadButton.setDisabledImage(uploadButtonDisabledImage);
  }
  hiddenPanel.add((Widget)uploadButton.getManagedObject(),"String_Node_Str");
  uploadButton.layout();
  hiddenPanel.add(upload,"String_Node_Str");
  uploadPanel.add(hiddenPanel);
  panel.add(uploadPanel);
  mainPanel.add(uploadForm);
  if (getHeight() >= 0) {
    mainPanel.setHeight(getHeight() + "String_Node_Str");
  }
  if (getWidth() >= 0) {
    mainPanel.setWidth(getWidth() + "String_Node_Str");
  }
  uploadForm.addFormHandler(new FormHandler(){
    public void onSubmit(    FormSubmitEvent event){
      if (upload.getFilename() == null) {
        try {
          GwtFileUpload.this.getXulDomContainer().invoke(getOnUploadFailure(),new Object[]{new Throwable("String_Node_Str")});
          return;
        }
 catch (        XulException e) {
          e.printStackTrace();
        }
      }
    }
    public void onSubmitComplete(    FormSubmitCompleteEvent event){
      String results=event.getResults();
      try {
        if (results != null && results.indexOf(ERROR) >= 0) {
          if (results.indexOf(ERROR) + ERROR.length() < results.length()) {
            String result=results.replaceAll("String_Node_Str","String_Node_Str");
            GwtFileUpload.this.getXulDomContainer().invoke(getOnUploadFailure(),new Object[]{new Throwable(result)});
          }
        }
 else {
          if (results != null) {
            String result=results.replaceAll("String_Node_Str","String_Node_Str");
            GwtFileUpload.this.getXulDomContainer().invoke(getOnUploadSuccess(),new Object[]{result});
          }
 else {
            GwtFileUpload.this.getXulDomContainer().invoke(getOnUploadFailure(),new Object[]{new Throwable("String_Node_Str")});
          }
        }
      }
 catch (      XulException xule) {
        xule.printStackTrace();
      }
    }
  }
);
  uploadForm.setWidth("String_Node_Str");
}