Program: 115363
Project: 115363
Buggy source:
@SuppressWarnings("String_Node_Str") public Object getValue(Object item,String property,int rowcount){
  String value="String_Node_Str";
  StudySubjectBean studySubjectBean=(StudySubjectBean)((HashMap<Object,Object>)item).get("String_Node_Str");
  Boolean isSignable=(Boolean)((HashMap<Object,Object>)item).get("String_Node_Str");
  Integer studySubjectId=studySubjectBean.getId();
  if (studySubjectId != null) {
    StringBuilder url=new StringBuilder();
    url.append(viewStudySubjectLinkBuilder(studySubjectBean));
    if (getCurrentRole().getRole() != Role.MONITOR) {
      if (getStudyBean().getStatus() == Status.AVAILABLE && studySubjectBean.getStatus() != Status.DELETED && getCurrentRole().getRole() != Role.RESEARCHASSISTANT) {
        url.append(removeStudySubjectLinkBuilder(studySubjectBean));
      }
      if (getStudyBean().getStatus() == Status.AVAILABLE && studySubjectBean.getStatus() == Status.DELETED) {
        url.append(restoreStudySubjectLinkBuilder(studySubjectBean));
      }
      if (getStudyBean().getStatus() == Status.AVAILABLE && getCurrentRole().getRole() != Role.RESEARCHASSISTANT && getCurrentRole().getRole() != Role.INVESTIGATOR && studySubjectBean.getStatus() == Status.AVAILABLE) {
        url.append(reAssignStudySubjectLinkBuilder(studySubjectBean));
      }
      if ((getCurrentRole().getRole() == Role.STUDYDIRECTOR || getCurrentRole().getRole() == Role.COORDINATOR || getCurrentRole().getRole() == Role.INVESTIGATOR) && getStudyBean().getStatus() == Status.AVAILABLE && studySubjectBean.getStatus() != Status.DELETED && isSignable) {
        url.append(signStudySubjectLinkBuilder(studySubjectBean));
      }
    }
    value=url.toString();
  }
  return value;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public Object getValue(Object item,String property,int rowcount){
  String value="String_Node_Str";
  StudySubjectBean studySubjectBean=(StudySubjectBean)((HashMap<Object,Object>)item).get("String_Node_Str");
  Boolean isSignable=(Boolean)((HashMap<Object,Object>)item).get("String_Node_Str");
  Integer studySubjectId=studySubjectBean.getId();
  if (studySubjectId != null) {
    StringBuilder url=new StringBuilder();
    url.append(viewStudySubjectLinkBuilder(studySubjectBean));
    if (getCurrentRole().getRole() != Role.MONITOR) {
      if (getStudyBean().getStatus() == Status.AVAILABLE && studySubjectBean.getStatus() != Status.DELETED && getCurrentRole().getRole() != Role.RESEARCHASSISTANT) {
        url.append(removeStudySubjectLinkBuilder(studySubjectBean));
      }
      if (getStudyBean().getStatus() == Status.AVAILABLE && studySubjectBean.getStatus() == Status.DELETED) {
        url.append(restoreStudySubjectLinkBuilder(studySubjectBean));
      }
      if (getStudyBean().getStatus() == Status.AVAILABLE && getCurrentRole().getRole() != Role.RESEARCHASSISTANT && getCurrentRole().getRole() != Role.INVESTIGATOR && studySubjectBean.getStatus() == Status.AVAILABLE) {
        url.append(reAssignStudySubjectLinkBuilder(studySubjectBean));
      }
      if ((getCurrentRole().getRole() == Role.INVESTIGATOR) && getStudyBean().getStatus() == Status.AVAILABLE && studySubjectBean.getStatus() != Status.DELETED && isSignable) {
        url.append(signStudySubjectLinkBuilder(studySubjectBean));
      }
    }
    value=url.toString();
  }
  return value;
}