Permalink
Browse files

fix test

  • Loading branch information...
1 parent bef35e0 commit dfdc137b2558efd3cd581e00e69a80131e4cf8d2 novalis committed Aug 4, 2012
@@ -540,8 +540,8 @@ private void filterStopTimes(List<StopTime> stopTimes, Graph graph) {
}
int runningTime = st1.getArrivalTime() - st0.getDepartureTime();
- if (runningTime < 0) {
- _log.warn(GraphBuilderAnnotation.register(graph, Variety.NEGATIVE_HOP_TIME, st0, st1));
+ if (runningTime < 0) {
+ _log.warn(GraphBuilderAnnotation.register(graph, Variety.NEGATIVE_HOP_TIME, new StopTime(st0), new StopTime(st1)));
// negative hops are usually caused by incorrect coding of midnight crossings
midnightCrossed = true;
if (st0.getDepartureTime() > 23 * HOUR && st1.getArrivalTime() < 1 * HOUR) {

0 comments on commit dfdc137

Please sign in to comment.