Skip to content

Commit

Permalink
Make class package-private as it's returned from package-private method
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wilkinsona committed Nov 11, 2022
1 parent 8cb615e commit b5e502d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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<MediaType> MEDIA_TYPES = Collections
.unmodifiableList(Arrays.asList(MediaType.APPLICATION_JSON, new MediaType("application", "*+json")));
Expand Down

0 comments on commit b5e502d

Please sign in to comment.