Program: 95742
Project: 95742
Buggy source:
/** 
 * {@inheritDoc}
 */
@SuppressWarnings("String_Node_Str") public boolean isElementVisible(Viewer viewer,Object element){
  ITestResultSummaryPO m=(ITestResultSummaryPO)element;
  String metaValue=StringConstants.EMPTY;
  if (m_filterType.equals(TESTRESULT_SUMMARY_DATE)) {
    metaValue=DTF_DEFAULT.format(m.getTestsuiteDate());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TESTRUN_ID)) {
    metaValue=String.valueOf(m.getId());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TEST_JOB_START_TIME)) {
    Date date=m.getTestJobStartTime();
    metaValue=date != null ? DTF_LONG.format(date) : StringUtils.EMPTY;
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TEST_JOB)) {
    metaValue=m.getTestJobName();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TESTRUN_STATE)) {
    metaValue=m.getTestRunState();
  }
 else   if (m_filterType.equals(TESTRESULT_ALM_REPORT_STATE)) {
    metaValue=getDescriptiveALMStatusDescription(m);
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_PROJECT_NAME)) {
    metaValue=m.getProjectName();
  }
 else   if (m_filterType.equals(TESTRESULT_PROJECT_VERSION)) {
    metaValue=getProjectVersion(m);
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TESTSUITE)) {
    metaValue=m.getTestsuiteName();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TESTSUITE_STATUS)) {
    metaValue=m.getStatusString();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_NAME)) {
    metaValue=m.getAutName();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_ID)) {
    metaValue=m.getAutId();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_CONFIG)) {
    metaValue=m.getAutConfigName();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_AGENT_HOSTNAME)) {
    metaValue=m.getAutAgentName();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_HOSTNAME)) {
    metaValue=m.getAutHostname();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_OS)) {
    metaValue=m.getAutOS();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TOOLKIT)) {
    metaValue=m.getAutToolkit();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_LANGUAGE)) {
    metaValue=m.getTestsuiteLanguage();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_START_TIME)) {
    metaValue=DTF_LONG.format(m.getTestsuiteStartTime());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_END_TIME)) {
    metaValue=DTF_LONG.format(m.getTestsuiteEndTime());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_DURATION)) {
    metaValue=m.getTestsuiteDuration();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_EXPECTED_CAPS)) {
    metaValue=String.valueOf(m.getTestsuiteExpectedTeststeps());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_EXECUTED_CAPS)) {
    metaValue=String.valueOf(m.getTestsuiteExecutedTeststeps());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_HANDLER_CAPS)) {
    metaValue=String.valueOf(m.getTestsuiteEventHandlerTeststeps());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_CMD_PARAM)) {
    metaValue=m.getAutCmdParameter();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TESTRUN_RELEVANT)) {
    metaValue=String.valueOf(m.isTestsuiteRelevant());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_DETAILS_AVAILABLE)) {
    metaValue=String.valueOf(m_detailedSummaryIds.contains(m.getId()));
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_NUMBER_OF_FAILED_CAPS)) {
    metaValue=String.valueOf(m.getTestsuiteFailedTeststeps());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_COMMENT_TITLE)) {
    metaValue=StringUtils.defaultString(m.getCommentTitle());
  }
  return wordMatches(metaValue);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@SuppressWarnings("String_Node_Str") public boolean isElementVisible(Viewer viewer,Object element){
  ITestResultSummaryPO m=(ITestResultSummaryPO)element;
  String metaValue=StringConstants.EMPTY;
  if (m_filterType.equals(TESTRESULT_SUMMARY_DATE)) {
    metaValue=DTF_DEFAULT.format(m.getTestsuiteDate());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TESTRUN_ID)) {
    metaValue=String.valueOf(m.getId());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TEST_JOB_START_TIME)) {
    Date date=m.getTestJobStartTime();
    metaValue=date != null ? DTF_LONG.format(date) : StringUtils.EMPTY;
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TEST_JOB)) {
    metaValue=m.getTestJobName();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TESTRUN_STATE)) {
    metaValue=m.getTestRunState();
  }
 else   if (m_filterType.equals(TESTRESULT_ALM_REPORT_STATE)) {
    metaValue=getDescriptiveALMStatusDescription(m);
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_PROJECT_NAME)) {
    metaValue=m.getProjectName();
  }
 else   if (m_filterType.equals(TESTRESULT_PROJECT_VERSION)) {
    metaValue=getProjectVersion(m);
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TESTSUITE)) {
    metaValue=m.getTestsuiteName();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TESTSUITE_STATUS)) {
    metaValue=m.getStatusString();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_NAME)) {
    metaValue=m.getAutName();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_ID)) {
    metaValue=m.getAutId();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_CONFIG)) {
    metaValue=m.getAutConfigName();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_AGENT_HOSTNAME)) {
    metaValue=m.getAutAgentName();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_HOSTNAME)) {
    metaValue=m.getAutHostname();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_AUT_OS)) {
    metaValue=m.getAutOS();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TOOLKIT)) {
    metaValue=m.getAutToolkit();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_LANGUAGE)) {
    metaValue=m.getTestsuiteLanguage();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_START_TIME)) {
    metaValue=DTF_LONG.format(m.getTestsuiteStartTime());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_END_TIME)) {
    metaValue=DTF_LONG.format(m.getTestsuiteEndTime());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_DURATION)) {
    metaValue=m.getTestsuiteDuration();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_EXPECTED_CAPS)) {
    metaValue=String.valueOf(m.getTestsuiteExpectedTeststeps());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_EXECUTED_CAPS)) {
    metaValue=String.valueOf(m.getTestsuiteExecutedTeststeps());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_HANDLER_CAPS)) {
    metaValue=String.valueOf(m.getTestsuiteEventHandlerTeststeps());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_CMD_PARAM)) {
    metaValue=m.getAutCmdParameter();
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_TESTRUN_RELEVANT)) {
    metaValue=String.valueOf(m.isTestsuiteRelevant());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_DETAILS_AVAILABLE)) {
    metaValue=String.valueOf(m.hasTestResultDetails());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_NUMBER_OF_FAILED_CAPS)) {
    metaValue=String.valueOf(m.getTestsuiteFailedTeststeps());
  }
 else   if (m_filterType.equals(TESTRESULT_SUMMARY_COMMENT_TITLE)) {
    metaValue=StringUtils.defaultString(m.getCommentTitle());
  }
  return wordMatches(metaValue);
}