File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
main/src/main/java/org/mobilitydata/gtfsvalidator/validator Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 88import org .mobilitydata .gtfsvalidator .notice .ValidationNotice ;
99import org .mobilitydata .gtfsvalidator .table .GtfsCalendar ;
1010import org .mobilitydata .gtfsvalidator .table .GtfsCalendarSchema ;
11+ import org .mobilitydata .gtfsvalidator .table .GtfsCalendarService ;
1112import org .mobilitydata .gtfsvalidator .table .GtfsCalendarTableContainer ;
1213
1314@ GtfsValidator
@@ -20,13 +21,13 @@ public class ServiceHasNoActiveDayOfTheWeekValidator extends FileValidator {
2021 }
2122
2223 private boolean hasNoActiveDayOfTheWeek (GtfsCalendar calendar ) {
23- return ! calendar .hasMonday ()
24- && ! calendar .hasTuesday ()
25- && ! calendar .hasWednesday ()
26- && ! calendar .hasThursday ()
27- && ! calendar .hasFriday ()
28- && ! calendar .hasSaturday ()
29- && ! calendar .hasSunday () ;
24+ return calendar .monday () == GtfsCalendarService . NOT_AVAILABLE
25+ && calendar .tuesday () == GtfsCalendarService . NOT_AVAILABLE
26+ && calendar .wednesday () == GtfsCalendarService . NOT_AVAILABLE
27+ && calendar .thursday () == GtfsCalendarService . NOT_AVAILABLE
28+ && calendar .friday () == GtfsCalendarService . NOT_AVAILABLE
29+ && calendar .saturday () == GtfsCalendarService . NOT_AVAILABLE
30+ && calendar .sunday () == GtfsCalendarService . NOT_AVAILABLE ;
3031 }
3132
3233 @ Override
You can’t perform that action at this time.
0 commit comments