Program: 115148
Project: 115148
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public void setDataAndLimitVariables(TableFacade tableFacade){
  resword=ResourceBundleProvider.getWordsBundle(getLocale());
  resformat=ResourceBundleProvider.getFormatBundle(getLocale());
  Limit limit=tableFacade.getLimit();
  ListNotesFilter listNotesFilter=getListNoteFilter(limit);
  if (!limit.isComplete()) {
    int totalRows=getDiscrepancyNoteDao().getViewNotesCountWithFilter(listNotesFilter,getCurrentStudy());
    tableFacade.setTotalRows(totalRows);
  }
  ListNotesSort listNotesSort=getListSubjectSort(limit);
  int rowStart=limit.getRowSelect().getRowStart();
  int rowEnd=limit.getRowSelect().getRowEnd();
  ArrayList<DiscrepancyNoteBean> items=getDiscrepancyNoteDao().getViewNotesWithFilterAndSort(getCurrentStudy(),listNotesFilter,listNotesSort,rowStart,rowEnd);
  Collection<HashMap<Object,Object>> theItems=new ArrayList<HashMap<Object,Object>>();
  this.setAllNotes(populateRowsWithAttachedData(items));
  notesForPrintPop=getDiscrepancyNoteDao().getViewNotesWithFilterAndSort(getCurrentStudy(),listNotesFilter,listNotesSort);
  for (  DiscrepancyNoteBean discrepancyNoteBean : allNotes) {
    UserAccountBean owner=(UserAccountBean)getUserAccountDao().findByPK(discrepancyNoteBean.getOwnerId());
    HashMap<Object,Object> h=new HashMap<Object,Object>();
    h.put("String_Node_Str",discrepancyNoteBean.getStudySub());
    h.put("String_Node_Str",discrepancyNoteBean.getStudySub().getLabel());
    h.put("String_Node_Str",discrepancyNoteBean.getDisType());
    h.put("String_Node_Str",discrepancyNoteBean.getResStatus());
    h.put("String_Node_Str",discrepancyNoteBean.getResolutionStatusId() == 5 ? null : discrepancyNoteBean.getAge());
    h.put("String_Node_Str",discrepancyNoteBean.getResolutionStatusId() == 4 || discrepancyNoteBean.getResolutionStatusId() == 5 ? null : discrepancyNoteBean.getDays());
    h.put("String_Node_Str",((StudyBean)getStudyDao().findByPK(discrepancyNoteBean.getStudySub().getStudyId())).getIdentifier());
    h.put("String_Node_Str",discrepancyNoteBean);
    h.put("String_Node_Str",discrepancyNoteBean.getCreatedDate());
    h.put("String_Node_Str",discrepancyNoteBean.getUpdatedDate());
    h.put("String_Node_Str",discrepancyNoteBean.getEventName());
    h.put("String_Node_Str",discrepancyNoteBean.getEventStart());
    h.put("String_Node_Str",discrepancyNoteBean.getCrfName());
    h.put("String_Node_Str",discrepancyNoteBean.getEntityName());
    h.put("String_Node_Str",discrepancyNoteBean.getEntityValue());
    h.put("String_Node_Str",discrepancyNoteBean);
    h.put("String_Node_Str",discrepancyNoteBean.getDescription());
    h.put("String_Node_Str",discrepancyNoteBean.getDetailedNotes());
    h.put("String_Node_Str",discrepancyNoteBean.getNumChildren());
    h.put("String_Node_Str",discrepancyNoteBean.getAssignedUser());
    h.put("String_Node_Str",discrepancyNoteBean.getEntityType());
    h.put("String_Node_Str",owner);
    theItems.add(h);
    setStudyHasDiscNotes(true);
  }
  tableFacade.setItems(theItems);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public void setDataAndLimitVariables(TableFacade tableFacade){
  resword=ResourceBundleProvider.getWordsBundle(getLocale());
  resformat=ResourceBundleProvider.getFormatBundle(getLocale());
  Limit limit=tableFacade.getLimit();
  ListNotesFilter listNotesFilter=getListNoteFilter(limit);
  if (!limit.isComplete()) {
    int totalRows=getDiscrepancyNoteDao().getViewNotesCountWithFilter(listNotesFilter,getCurrentStudy());
    tableFacade.setTotalRows(totalRows);
  }
  ListNotesSort listNotesSort=getListSubjectSort(limit);
  int rowStart=limit.getRowSelect().getRowStart();
  int rowEnd=limit.getRowSelect().getRowEnd();
  ArrayList<DiscrepancyNoteBean> items=getDiscrepancyNoteDao().getViewNotesWithFilterAndSort(getCurrentStudy(),listNotesFilter,listNotesSort,rowStart,rowEnd);
  Collection<HashMap<Object,Object>> theItems=new ArrayList<HashMap<Object,Object>>();
  this.setAllNotes(populateRowsWithAttachedData(items));
  notesForPrintPop=getDiscrepancyNoteDao().getViewNotesWithFilterAndSort(getCurrentStudy(),listNotesFilter,listNotesSort);
  for (  DiscrepancyNoteBean discrepancyNoteBean : allNotes) {
    UserAccountBean owner=(UserAccountBean)getUserAccountDao().findByPK(discrepancyNoteBean.getOwnerId());
    HashMap<Object,Object> h=new HashMap<Object,Object>();
    h.put("String_Node_Str",discrepancyNoteBean.getStudySub());
    h.put("String_Node_Str",discrepancyNoteBean.getStudySub().getLabel());
    h.put("String_Node_Str",discrepancyNoteBean.getDisType());
    h.put("String_Node_Str",discrepancyNoteBean.getResStatus());
    h.put("String_Node_Str",discrepancyNoteBean.getResolutionStatusId() == 5 ? null : discrepancyNoteBean.getAge());
    h.put("String_Node_Str",discrepancyNoteBean.getResolutionStatusId() == 4 || discrepancyNoteBean.getResolutionStatusId() == 5 ? null : discrepancyNoteBean.getDays());
    h.put("String_Node_Str",((StudyBean)getStudyDao().findByPK(discrepancyNoteBean.getStudySub().getStudyId())).getIdentifier());
    h.put("String_Node_Str",discrepancyNoteBean);
    h.put("String_Node_Str",discrepancyNoteBean.getCreatedDate());
    h.put("String_Node_Str",discrepancyNoteBean.getUpdatedDate());
    h.put("String_Node_Str",discrepancyNoteBean.getEventName());
    h.put("String_Node_Str",discrepancyNoteBean.getEventStart());
    h.put("String_Node_Str",discrepancyNoteBean.getCrfName());
    h.put("String_Node_Str",discrepancyNoteBean.getCrfStatus());
    h.put("String_Node_Str",discrepancyNoteBean.getEntityName());
    h.put("String_Node_Str",discrepancyNoteBean.getEntityValue());
    h.put("String_Node_Str",discrepancyNoteBean);
    h.put("String_Node_Str",discrepancyNoteBean.getDescription());
    h.put("String_Node_Str",discrepancyNoteBean.getDetailedNotes());
    h.put("String_Node_Str",discrepancyNoteBean.getNumChildren());
    h.put("String_Node_Str",discrepancyNoteBean.getAssignedUser());
    h.put("String_Node_Str",discrepancyNoteBean.getEntityType());
    h.put("String_Node_Str",owner);
    theItems.add(h);
    setStudyHasDiscNotes(true);
  }
  tableFacade.setItems(theItems);
}