Program: 188444
Project: 188444
Buggy source:
@Override public Widget createActionsLayout(SelectedItems<IndexedRepresentation> representations,AsyncCallback<ActionImpact> callback){
  FlowPanel layout=createLayout();
  addTitle(layout,messages.representation(),representations,null,RepresentationAction.DOWNLOAD,RepresentationAction.CHANGE_TYPE,RepresentationAction.REMOVE);
  addButton(layout,messages.downloadButton(),RepresentationAction.DOWNLOAD,representations,ActionImpact.NONE,callback,"String_Node_Str");
  addButton(layout,messages.changeTypeButton(),RepresentationAction.CHANGE_TYPE,representations,ActionImpact.UPDATED,callback,"String_Node_Str");
  addButton(layout,messages.removeButton(),RepresentationAction.REMOVE,representations,ActionImpact.DESTROYED,callback,"String_Node_Str");
  addTitle(layout,messages.preservationTitle(),representations,null,RepresentationAction.NEW_PROCESS,RepresentationAction.IDENTIFY_FORMATS,RepresentationAction.SHOW_EVENTS,RepresentationAction.SHOW_RISKS);
  addButton(layout,messages.newProcessPreservation(),RepresentationAction.NEW_PROCESS,representations,ActionImpact.UPDATED,callback,"String_Node_Str");
  addButton(layout,messages.identifyFormatsButton(),RepresentationAction.IDENTIFY_FORMATS,representations,ActionImpact.UPDATED,callback,"String_Node_Str");
  addButton(layout,messages.preservationEvents(),RepresentationAction.SHOW_EVENTS,representations,ActionImpact.NONE,callback,"String_Node_Str");
  addButton(layout,messages.preservationRisks(),RepresentationAction.SHOW_RISKS,representations,ActionImpact.NONE,callback,"String_Node_Str");
  addTitle(layout,messages.sidebarFoldersFilesTitle(),representations,null,RepresentationAction.UPLOAD_FILES,RepresentationAction.CREATE_FOLDER);
  addButton(layout,messages.uploadFilesButton(),RepresentationAction.UPLOAD_FILES,representations,ActionImpact.UPDATED,callback,"String_Node_Str");
  addButton(layout,messages.createFolderButton(),RepresentationAction.CREATE_FOLDER,representations,ActionImpact.UPDATED,callback,"String_Node_Str");
  return layout;
}

Fixed version (ground truth):
@Override public Widget createActionsLayout(SelectedItems<IndexedRepresentation> representations,AsyncCallback<ActionImpact> callback){
  FlowPanel layout=createLayout();
  addTitle(layout,messages.representation(),representations,RepresentationAction.DOWNLOAD,RepresentationAction.CHANGE_TYPE,RepresentationAction.REMOVE);
  addButton(layout,messages.downloadButton(),RepresentationAction.DOWNLOAD,representations,ActionImpact.NONE,callback,"String_Node_Str");
  addButton(layout,messages.changeTypeButton(),RepresentationAction.CHANGE_TYPE,representations,ActionImpact.UPDATED,callback,"String_Node_Str");
  addButton(layout,messages.removeButton(),RepresentationAction.REMOVE,representations,ActionImpact.DESTROYED,callback,"String_Node_Str");
  addTitle(layout,messages.preservationTitle(),representations,RepresentationAction.NEW_PROCESS,RepresentationAction.IDENTIFY_FORMATS,RepresentationAction.SHOW_EVENTS,RepresentationAction.SHOW_RISKS);
  addButton(layout,messages.newProcessPreservation(),RepresentationAction.NEW_PROCESS,representations,ActionImpact.UPDATED,callback,"String_Node_Str");
  addButton(layout,messages.identifyFormatsButton(),RepresentationAction.IDENTIFY_FORMATS,representations,ActionImpact.UPDATED,callback,"String_Node_Str");
  addButton(layout,messages.preservationEvents(),RepresentationAction.SHOW_EVENTS,representations,ActionImpact.NONE,callback,"String_Node_Str");
  addButton(layout,messages.preservationRisks(),RepresentationAction.SHOW_RISKS,representations,ActionImpact.NONE,callback,"String_Node_Str");
  addTitle(layout,messages.sidebarFoldersFilesTitle(),representations,RepresentationAction.UPLOAD_FILES,RepresentationAction.CREATE_FOLDER);
  addButton(layout,messages.uploadFilesButton(),RepresentationAction.UPLOAD_FILES,representations,ActionImpact.UPDATED,callback,"String_Node_Str");
  addButton(layout,messages.createFolderButton(),RepresentationAction.CREATE_FOLDER,representations,ActionImpact.UPDATED,callback,"String_Node_Str");
  return layout;
}