Skip to content

Commit f303a80

Browse files
committed
Merge branch 'update_netex_1_16' into 4.x
2 parents 41f23f9 + 54f6005 commit f303a80

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

pom.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>org.entur</groupId>
66
<artifactId>netex-parser-java</artifactId>
7-
<version>3.1.76-SNAPSHOT</version>
7+
<version>4.0.0-SNAPSHOT</version>
88

99
<name>netex-java-parser</name>
1010
<description>Library for parsing NeTEx files and looking up entities in an index.</description>
@@ -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.2</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>
@@ -342,6 +342,18 @@
342342
</plugin>
343343
</plugins>
344344
</build>
345+
<repositories>
346+
<repository>
347+
<id>maven-snapshots</id>
348+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
349+
<releases>
350+
<enabled>false</enabled>
351+
</releases>
352+
<snapshots>
353+
<enabled>true</enabled>
354+
</snapshots>
355+
</repository>
356+
</repositories>
345357
<profiles>
346358
<profile>
347359
<id>sonar</id>

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)