Skip to content

Commit fb3832a

Browse files
Replace Set.of with List.of
1 parent 1e029c6 commit fb3832a

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed

application/src/test/java/org/opentripplanner/routing/core/TemporaryVerticesContainerTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import java.util.Arrays;
99
import java.util.Collection;
1010
import java.util.List;
11-
import java.util.Set;
1211
import org.junit.jupiter.api.BeforeEach;
1312
import org.junit.jupiter.api.Test;
1413
import org.opentripplanner.framework.geometry.SphericalDistanceLibrary;
@@ -59,7 +58,7 @@ public void temporaryChangesRemovedOnClose() {
5958
subject = new TemporaryVerticesContainer(
6059
g,
6160
TestVertexLinker.of(g),
62-
id -> Set.of(),
61+
id -> List.of(),
6362
from,
6463
to,
6564
StreetMode.WALK,

application/src/test/java/org/opentripplanner/street/integration/BarrierRoutingTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import java.time.Instant;
1010
import java.util.List;
11-
import java.util.Set;
1211
import java.util.function.Consumer;
1312
import java.util.function.Function;
1413
import java.util.stream.Collectors;
@@ -187,7 +186,7 @@ private static String computePolyline(
187186
var temporaryVertices = new TemporaryVerticesContainer(
188187
graph,
189188
TestVertexLinker.of(graph),
190-
id -> Set.of(),
189+
id -> List.of(),
191190
from,
192191
to,
193192
streetMode,

application/src/test/java/org/opentripplanner/street/integration/BicycleRoutingTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import static org.opentripplanner.test.support.PolylineAssert.assertThatPolylinesAreEqual;
66

77
import java.time.Instant;
8-
import java.util.Set;
8+
import java.util.List;
99
import org.junit.jupiter.api.Test;
1010
import org.locationtech.jts.geom.Geometry;
1111
import org.opentripplanner.ConstantsForTests;
@@ -89,7 +89,7 @@ private static String computePolyline(Graph graph, GenericLocation from, Generic
8989
var temporaryVertices = new TemporaryVerticesContainer(
9090
graph,
9191
TestVertexLinker.of(graph),
92-
id -> Set.of(),
92+
id -> List.of(),
9393
request.from(),
9494
request.to(),
9595
request.journey().direct().mode(),

application/src/test/java/org/opentripplanner/street/integration/CarRoutingTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import static org.opentripplanner.test.support.PolylineAssert.assertThatPolylinesAreEqual;
66

77
import java.time.Instant;
8-
import java.util.Set;
8+
import java.util.List;
99
import org.junit.jupiter.api.BeforeAll;
1010
import org.junit.jupiter.api.DisplayName;
1111
import org.junit.jupiter.api.Test;
@@ -137,7 +137,7 @@ private static String computePolyline(Graph graph, GenericLocation from, Generic
137137
var temporaryVertices = new TemporaryVerticesContainer(
138138
graph,
139139
TestVertexLinker.of(graph),
140-
id -> Set.of(),
140+
id -> List.of(),
141141
from,
142142
to,
143143
StreetMode.CAR,

application/src/test/java/org/opentripplanner/street/integration/SplitEdgeTurnRestrictionsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import java.time.Instant;
88
import java.time.LocalDateTime;
9-
import java.util.Set;
9+
import java.util.List;
1010
import org.junit.jupiter.api.Test;
1111
import org.locationtech.jts.geom.Geometry;
1212
import org.opentripplanner.ConstantsForTests;
@@ -169,7 +169,7 @@ private static String computeCarPolyline(Graph graph, GenericLocation from, Gene
169169
var temporaryVertices = new TemporaryVerticesContainer(
170170
graph,
171171
TestVertexLinker.of(graph),
172-
id -> Set.of(),
172+
id -> List.of(),
173173
from,
174174
to,
175175
StreetMode.CAR,

application/src/test/java/org/opentripplanner/street/integration/WalkRoutingTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import java.time.Instant;
77
import java.time.temporal.ChronoUnit;
88
import java.util.List;
9-
import java.util.Set;
109
import org.junit.jupiter.api.Test;
1110
import org.junit.jupiter.params.ParameterizedTest;
1211
import org.junit.jupiter.params.provider.ValueSource;
@@ -90,7 +89,7 @@ private static List<GraphPath<State, Edge, Vertex>> route(
9089
var temporaryVertices = new TemporaryVerticesContainer(
9190
graph,
9291
TestVertexLinker.of(graph),
93-
id -> Set.of(),
92+
id -> List.of(),
9493
request.from(),
9594
request.to(),
9695
request.journey().direct().mode(),

0 commit comments

Comments
 (0)