Skip to content

Commit 98e30c7

Browse files
committed
Update NeTEx 1.16
1 parent e06a69f commit 98e30c7

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5353
<jdk.version>17</jdk.version>
5454

55-
<netex-java-model.version>2.0.15</netex-java-model.version>
55+
<netex-java-model.version>2.0.16-SNAPSHOT</netex-java-model.version>
5656
<guava.version>32.1.3-jre</guava.version>
5757

5858
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>

src/main/java/org/entur/netex/loader/parser/TimeTableFrameParser.java

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,10 @@ private void parseJourneys(JourneysInFrame_RelStructure element) {
117117
serviceJourneys.add(serviceJourney);
118118
} else if (it instanceof DatedServiceJourney datedServiceJourney) {
119119
datedServiceJourneys.add(datedServiceJourney);
120-
datedServiceJourney
121-
.getJourneyRef()
122-
.stream()
123-
.filter(journeyRef ->
124-
journeyRef.getValue() instanceof ServiceJourneyRefStructure
125-
)
126-
.map(journeyRef -> journeyRef.getValue().getRef())
127-
.forEach(serviceJourneyId ->
128-
datedServiceJourneyByServiceJourneyId.put(
129-
serviceJourneyId,
130-
datedServiceJourney
131-
)
132-
);
120+
datedServiceJourneyByServiceJourneyId.put(
121+
datedServiceJourney.getJourneyRef().getValue().getRef(),
122+
datedServiceJourney
123+
);
133124
} else if (it instanceof DeadRun deadRun) {
134125
deadRuns.add(deadRun);
135126
} else {

0 commit comments

Comments
 (0)