public long getEffectiveProjectionStart(Task task, long start) { long firstProjectionDay; Object org = taskUtils.getCustomer(task); if (org != null) { Long lastActualSeen = (Long)customerHash.get(org); if (lastActualSeen != null){ firstProjectionDay = lastActualSeen.longValue() + TimeUtils.MSEC_PER_DAY; if (firstProjectionDay > start) { return firstProjectionDay; } }
public synchronized long getEffectiveProjectionStart(Task task, long start) { long firstProjectionTime; Object org = taskUtils.getCustomer(task); if (org != null) { Long lastActualSeen = (Long) customerHash.get(org); if (lastActualSeen != null) { firstProjectionTime = lastActualSeen.longValue() + MSEC_PER_BUCKET; firstProjectionTime = truncateToBucketStart(firstProjectionTime); if (firstProjectionTime > start) { return firstProjectionTime; } } } return start;
  public long getEffectiveProjectionStart(Task task, long start) {    long firstProjectionDay;    Object org = taskUtils.getCustomer(task);    if (org != null) {      Long lastActualSeen = (Long)customerHash.get(org);      if (lastActualSeen != null){	firstProjectionDay = lastActualSeen.longValue() + TimeUtils.MSEC_PER_DAY;	if (firstProjectionDay > start) {	  return firstProjectionDay;	}      }    }    return start;  }