Skip to content

Commit 6f47306

Browse files
committed
Javadoc, cleanup
1 parent acbedaf commit 6f47306

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ Collection<Trip> getTripsForStop(StopLocation stop) {
153153
.collect(Collectors.toList());
154154
}
155155

156+
/**
157+
* Checks if the last scheduled service date for the stop is today or in the future.
158+
*
159+
* @param stop the stop to check
160+
* @return true if the stop is in service today or later, false otherwise
161+
*/
156162
boolean isStopInService(StopLocation stop) {
157163
LocalDate endOfServiceDate = endOfServiceDateForStop.get(stop);
158164
return (

application/src/test/java/org/opentripplanner/transit/service/DefaultTransitServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class DefaultTransitServiceTest {
4949
.build();
5050
private static final RegularStop STOP_B = TEST_MODEL.stop("B").withParentStation(STATION).build();
5151
private static final RegularStop STOP_C = TEST_MODEL.stop("C").withVehicleType(BUS).build();
52-
private static final RegularStop STOP_ONE = TEST_MODEL.stop("Stop_1") // added automatically to pattern by timetableRepositoryTest (same name)
52+
private static final RegularStop STOP_ONE = TEST_MODEL.stop("Stop_1")
5353
.withVehicleType(TRAM)
5454
.build();
5555
private static final FeedScopedId SERVICE_ID = new FeedScopedId("FEED", "SERVICE");

0 commit comments

Comments
 (0)