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
This commit is contained in:
Andy Wilkinson 2022-11-11 15:47:09 +00:00
parent 8cb615e9b6
commit b5e502d03b
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ public class WebFluxEndpointManagementContextConfiguration {
* {@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<MediaType> MEDIA_TYPES = Collections
.unmodifiableList(Arrays.asList(MediaType.APPLICATION_JSON, new MediaType("application", "*+json")));