Migrate OAuth2 token response client from RestOperations to RestClient

Proprietary

Replaces setRestOperations(RestOperations) with setRestClient(RestClient) on the RestClient-based OAuth2 AccessTokenResponseClient implementations introduced in Spring Security 6.4, when the argument is a RestTemplate. Marks other setRestOperations arguments with a warning, as well as setRequestEntityConverter calls, which have no counterpart on these clients.

io.moderne.java.spring.security7.MigrateOAuth2RestOperationsToRestClient
mod run . --recipe=io.moderne.java.spring.security7.MigrateOAuth2RestOperationsToRestClient

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.