long start = getStartTime(task); long end = getEndTime(task);  if (start == 0L) { return;
long start = getStartTime(task); long end = getEndTime(task);  if (start == 0L) { return; } int bucket_start = convertTimeToBucket(start); int bucket_end = convertTimeToBucket(end); while (bucket_end >= refillProjections.size()) { refillProjections.add(null); } for (int i = bucket_start; i < bucket_end; i++) { refillProjections.set(i, task); }
  public void addRefillProjection(Task task) {    long start = getStartTime(task);    long end = getEndTime(task);    // Test for Failed Dispositions Bug #2033    if (start == 0L) {      return;    }    int bucket_start = convertTimeToBucket(start);    int bucket_end = convertTimeToBucket(end);    while (bucket_end >= refillProjections.size()) {      refillProjections.add(null);    }    for (int i=bucket_start; i < bucket_end; i++) {      refillProjections.set(i, task);    }  }