From 44c04c4865729924abe1a82429dd6d8e2d966c3d Mon Sep 17 00:00:00 2001 From: Vincent Paturet Date: Mon, 2 Jun 2025 12:47:10 +0200 Subject: [PATCH] Update NeTEx 1.16 --- pom.xml | 4 ++-- .../loader/parser/TimeTableFrameParser.java | 17 ++++------------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/pom.xml b/pom.xml index 23c384fd..ddc7765c 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 cdedfcbf..db1b1778 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 {