mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 04:09:04 +00:00
Prior to this commit, the `setMessageConverters` method would have private visibility. But `initBodyConvertFunction`, which is `protected`, relies on the message converters being set in the first place. While this works with `RestTemplate` because this is done automatically, the `RestClient` does offer a builder method to configure a `ResponseErrorHandler` and this makes it impossible to configure converters in this case. This commit aligns the method visibility by making it protected. Closes gh-36434