Program: 20636
Project: 20636
Buggy source:
@Override protected PollingResult compareRemoteRevisionWith(AbstractProject<?,?> project,Launcher launcher,FilePath workspace,TaskListener listener,SCMRevisionState baseline) throws IOException, InterruptedException {
  final AbstractBuild<?,?> lastBuild=project.getLastBuild();
  if (lastBuild == null) {
    DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH);
    return PollingResult.BUILD_NOW;
  }
  DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH,lastBuild.getNumber());
  ClearTool ct=new ClearTool(launcher,listener,workspace,viewname);
  LoadRuleDateMap baselineCommits=((SimpleClearCaseRevisionState)baseline).getLoadRuleDateMap();
  DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH,baselineCommits);
  LoadRuleDateMap remoteRevCommits=ct.getLatestCommitDates(getLoadRulesAsList(),baselineCommits);
  if (remoteRevCommits.isDatesEmpty() == true) {
    DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH);
    return PollingResult.NO_CHANGES;
  }
  DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH,remoteRevCommits);
  if (getDateUtil().anyDateBefore(remoteRevCommits,new Date(),PropUtils.getQuietPeriod()) == false) {
    DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH);
    return PollingResult.NO_CHANGES;
  }
  if (baselineCommits.isBefore(remoteRevCommits) == true) {
    DebugHelper.info(listener,"String_Node_Str" + "String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH);
    return PollingResult.BUILD_NOW;
  }
 else {
    DebugHelper.info(listener,"String_Node_Str" + "String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH);
    return PollingResult.NO_CHANGES;
  }
}

Fixed version (ground truth):
@Override protected PollingResult compareRemoteRevisionWith(AbstractProject<?,?> project,Launcher launcher,FilePath workspace,TaskListener listener,SCMRevisionState baseline) throws IOException, InterruptedException {
  final AbstractBuild<?,?> lastBuild=project.getLastBuild();
  if (lastBuild == null) {
    DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH);
    return new PollingResult(PollingResult.Change.SIGNIFICANT);
  }
  DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH,lastBuild.getNumber());
  ClearTool ct=new ClearTool(launcher,listener,workspace,viewname);
  LoadRuleDateMap baselineCommits=((SimpleClearCaseRevisionState)baseline).getLoadRuleDateMap();
  DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH,baselineCommits);
  LoadRuleDateMap remoteRevCommits=ct.getLatestCommitDates(getLoadRulesAsList(),baselineCommits);
  if (remoteRevCommits.isDatesEmpty() == true) {
    DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH);
    return new PollingResult(baseline,new SimpleClearCaseRevisionState(remoteRevCommits),PollingResult.Change.NONE);
  }
  DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH,remoteRevCommits);
  if (getDateUtil().anyDateBefore(remoteRevCommits,new Date(),PropUtils.getQuietPeriod()) == false) {
    DebugHelper.info(listener,"String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH);
    return new PollingResult(baseline,new SimpleClearCaseRevisionState(remoteRevCommits),PollingResult.Change.NONE);
  }
  if (baselineCommits.isBefore(remoteRevCommits) == true) {
    DebugHelper.info(listener,"String_Node_Str" + "String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH);
    return new PollingResult(baseline,new SimpleClearCaseRevisionState(remoteRevCommits),PollingResult.Change.SIGNIFICANT);
  }
 else {
    DebugHelper.info(listener,"String_Node_Str" + "String_Node_Str",LOG_COMPARE_REMOTE_REVISION_WITH);
    return new PollingResult(baseline,new SimpleClearCaseRevisionState(remoteRevCommits),PollingResult.Change.NONE);
  }
}