Widen the Supplier parameter of AuthorizationManager#check overrides

MSAL

Spring Security 7 replaces AuthorizationManager#check(Supplier<Authentication>, T) with authorize(Supplier<? extends Authentication>, T). Renaming an override is not enough for it to override authorize, so this recipe also changes its parameter to Supplier<? extends Authentication>.

org.openrewrite.java.spring.security7.WidenAuthorizationManagerSupplierParameter
mod run . --recipe=org.openrewrite.java.spring.security7.WidenAuthorizationManagerSupplierParameter

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