From b5e502d03b832854ca6a5dd73391797b45568311 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 11 Nov 2022 15:47:09 +0000 Subject: [PATCH] Make class package-private as it's returned from package-private method Returning a private class from a package-private method causes the AOT-generated source files to fail to compile as the private class is not visible. Closes gh-33106 --- .../reactive/WebFluxEndpointManagementContextConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/reactive/WebFluxEndpointManagementContextConfiguration.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/reactive/WebFluxEndpointManagementContextConfiguration.java index 433303ebcb94..76d3cfb24b60 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/reactive/WebFluxEndpointManagementContextConfiguration.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/reactive/WebFluxEndpointManagementContextConfiguration.java @@ -142,7 +142,7 @@ static ServerCodecConfigurerEndpointObjectMapperBeanPostProcessor serverCodecCon * {@link BeanPostProcessor} to apply {@link EndpointObjectMapper} for * {@link OperationResponseBody} to {@link Jackson2JsonEncoder} instances. */ - private static class ServerCodecConfigurerEndpointObjectMapperBeanPostProcessor implements BeanPostProcessor { + static class ServerCodecConfigurerEndpointObjectMapperBeanPostProcessor implements BeanPostProcessor { private static final List MEDIA_TYPES = Collections .unmodifiableList(Arrays.asList(MediaType.APPLICATION_JSON, new MediaType("application", "*+json")));