From 5381962e747ea9ac515abcf51dc70ad40bbbf70d Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Sun, 4 Dec 2022 23:02:42 +0100 Subject: Revert "Revert collect(Collectors.toList())" --- .../src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java | 2 +- .../src/test/java/com/yahoo/vespa/hosted/routing/nginx/NginxTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'routing-generator') diff --git a/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java b/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java index 8db2387bf66..de3207fda2e 100644 --- a/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java +++ b/routing-generator/src/main/java/com/yahoo/vespa/hosted/routing/RoutingTable.java @@ -103,7 +103,7 @@ public class RoutingTable { 4443, configuredEndpoint.weight(), applications.getValue().activeRotation())) - .collect(Collectors.toList()); + .toList(); Endpoint endpoint = new Endpoint(configuredEndpoint.dnsName(), routingMethodFrom(configuredEndpoint)); ClusterSpec.Id cluster = ClusterSpec.Id.from(configuredEndpoint.clusterId()); Target target; diff --git a/routing-generator/src/test/java/com/yahoo/vespa/hosted/routing/nginx/NginxTest.java b/routing-generator/src/test/java/com/yahoo/vespa/hosted/routing/nginx/NginxTest.java index 0b17daa3e3c..fb21d153ded 100644 --- a/routing-generator/src/test/java/com/yahoo/vespa/hosted/routing/nginx/NginxTest.java +++ b/routing-generator/src/test/java/com/yahoo/vespa/hosted/routing/nginx/NginxTest.java @@ -146,7 +146,7 @@ public class NginxTest { List rotatedFiles = Exceptions.uncheck(() -> Files.list(NginxPath.root.in(fileSystem)) .map(path -> path.getFileName().toString()) .filter(filename -> filename.contains(".conf-")) - .collect(Collectors.toList())); + .toList()); assertEquals(List.of(expectedRotatedFiles), rotatedFiles); return this; } -- cgit v1.2.3