Skip to content

Commit 26abec4

Browse files
committed
change fallback boolean parameter name again, again
1 parent 6cafd9e commit 26abec4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

application/src/main/java/org/opentripplanner/transit/service/DefaultTransitService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public Optional<List<TripTimeOnDate>> getScheduledTripTimes(Trip trip) {
123123
public Optional<List<TripTimeOnDate>> getTripTimeOnDates(
124124
Trip trip,
125125
LocalDate serviceDate,
126-
boolean fallbackToNextPlannedTimetable
126+
boolean fallbackToPlannedTimetableOnNonRunningDate
127127
) {
128128
TripPattern pattern = findPattern(trip, serviceDate);
129129

@@ -134,7 +134,7 @@ public Optional<List<TripTimeOnDate>> getTripTimeOnDates(
134134
if (times == null) {
135135
return Optional.empty();
136136
} else if (!this.getServiceCodesRunningForDate(serviceDate).contains(times.getServiceCode())) {
137-
if (fallbackToNextPlannedTimetable) {
137+
if (fallbackToPlannedTimetableOnNonRunningDate) {
138138
// Technically not returning empty here is incorrect, you should use getScheduledTripTimes
139139
// above instead if you want this, but it has been the behavior for a very long time, and
140140
// at least one longstanding front end will fail without this.

application/src/main/java/org/opentripplanner/transit/service/TransitService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public interface TransitService {
8282
Optional<List<TripTimeOnDate>> getTripTimeOnDates(
8383
Trip trip,
8484
LocalDate serviceDate,
85-
boolean fallbackToNextPlannedTimetable
85+
boolean fallbackToPlannedTimetableOnNonRunningDate
8686
);
8787

8888
/**

0 commit comments

Comments
 (0)