From 99227e4dfd0256abf632497fc03b590f1cb058c8 Mon Sep 17 00:00:00 2001 From: Hubert goEuropa Date: Mon, 9 Dec 2019 22:03:50 +0100 Subject: [PATCH] Fixed issue #227 --- .../org/onebusaway/api/model/transit/BeanFactoryV2.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java b/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java index ce28f99412..d797311e06 100644 --- a/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java +++ b/onebusaway-api-core/src/main/java/org/onebusaway/api/model/transit/BeanFactoryV2.java @@ -801,10 +801,10 @@ public StopWithArrivalsAndDeparturesV2Bean getStopWithArrivalAndDepartures( List ads = new ArrayList(); for (ArrivalAndDepartureBean ad : sad.getArrivalsAndDepartures()) { - if(ad.isPredicted() && ad.getPredictedArrivalTime() == 0 && ad.getNumberOfStopsAway() < 0) - continue; - ads.add(getArrivalAndDeparture(ad)); - } + if(ad.isPredicted() && ad.getPredictedArrivalTime() == 0 && ad.getNumberOfStopsAway() < 0) + continue; + ads.add(getArrivalAndDeparture(ad)); + } bean.setArrivalsAndDepartures(ads); List nearbyStopIds = new ArrayList();