Enumeration enum = aSchedule.getAllScheduleElements(); if(!enum.hasMoreElements())
Enumeration en = aSchedule.getAllScheduleElements(); if(!en.hasMoreElements())
  private boolean isOverlappingSchedule(Schedule aSchedule) {    if(aSchedule != null) {      Enumeration enum = aSchedule.getAllScheduleElements();      if(!enum.hasMoreElements())        return false;       long last_time = aSchedule.getStartTime()-1;      while (enum.hasMoreElements()) {        ScheduleElement element = (ScheduleElement)enum.nextElement();        if (element.getStartTime() <= last_time)          return true;        last_time = element.getEndTime();      }    }