diff --git a/pom.xml b/pom.xml index 23c384f..ddc7765 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.entur netex-parser-java - 3.1.50-SNAPSHOT + 4.0.0-SNAPSHOT netex-java-parser Library for parsing NeTEx files and looking up entities in an index. @@ -52,7 +52,7 @@ UTF-8 17 - 2.0.15 + 2.0.16-SNAPSHOT 32.1.3-jre 1.6.13 diff --git a/src/main/java/org/entur/netex/loader/parser/TimeTableFrameParser.java b/src/main/java/org/entur/netex/loader/parser/TimeTableFrameParser.java index cdedfcb..db1b177 100644 --- a/src/main/java/org/entur/netex/loader/parser/TimeTableFrameParser.java +++ b/src/main/java/org/entur/netex/loader/parser/TimeTableFrameParser.java @@ -117,19 +117,10 @@ private void parseJourneys(JourneysInFrame_RelStructure element) { serviceJourneys.add(serviceJourney); } else if (it instanceof DatedServiceJourney datedServiceJourney) { datedServiceJourneys.add(datedServiceJourney); - datedServiceJourney - .getJourneyRef() - .stream() - .filter(journeyRef -> - journeyRef.getValue() instanceof ServiceJourneyRefStructure - ) - .map(journeyRef -> journeyRef.getValue().getRef()) - .forEach(serviceJourneyId -> - datedServiceJourneyByServiceJourneyId.put( - serviceJourneyId, - datedServiceJourney - ) - ); + datedServiceJourneyByServiceJourneyId.put( + datedServiceJourney.getJourneyRef().getValue().getRef(), + datedServiceJourney + ); } else if (it instanceof DeadRun deadRun) { deadRuns.add(deadRun); } else {