Merge branch '3.0.x' into 3.1.x

pull/36766/head
Andy Wilkinson 1 year ago
commit 1085c1707e

@ -20,7 +20,6 @@ import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream; import java.util.stream.Stream;
import org.glassfish.jersey.server.model.Resource; import org.glassfish.jersey.server.model.Resource;
@ -60,7 +59,7 @@ public final class JerseyHealthEndpointAdditionalPathResourceFactory {
return endpoints.stream() return endpoints.stream()
.flatMap((endpoint) -> endpoint.getOperations().stream()) .flatMap((endpoint) -> endpoint.getOperations().stream())
.flatMap((operation) -> createResources(endpointMapping, operation)) .flatMap((operation) -> createResources(endpointMapping, operation))
.collect(Collectors.toList()); .toList();
} }
private Stream<Resource> createResources(EndpointMapping endpointMapping, WebOperation operation) { private Stream<Resource> createResources(EndpointMapping endpointMapping, WebOperation operation) {

Loading…
Cancel
Save