From 732424f7cb476d8cec81c8c1e43281c3147f7701 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 7 Jul 2023 12:19:05 +0100 Subject: [PATCH] Polish --- .../JerseyHealthEndpointAdditionalPathResourceFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/jersey/JerseyHealthEndpointAdditionalPathResourceFactory.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/jersey/JerseyHealthEndpointAdditionalPathResourceFactory.java index 9e744585c2..e182af12d8 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/jersey/JerseyHealthEndpointAdditionalPathResourceFactory.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/jersey/JerseyHealthEndpointAdditionalPathResourceFactory.java @@ -20,7 +20,6 @@ import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Set; -import java.util.stream.Collectors; import java.util.stream.Stream; import org.glassfish.jersey.server.model.Resource; @@ -60,7 +59,7 @@ public final class JerseyHealthEndpointAdditionalPathResourceFactory { return endpoints.stream() .flatMap((endpoint) -> endpoint.getOperations().stream()) .flatMap((operation) -> createResources(endpointMapping, operation)) - .collect(Collectors.toList()); + .toList(); } private Stream createResources(EndpointMapping endpointMapping, WebOperation operation) {