Migrate CookieLocaleResolver#setCookieName(String) to the constructor

Proprietary

CookieLocaleResolver#setCookieName(String) was deprecated in Spring Framework 6.0 and removed in Spring Framework 7.0. This recipe moves the cookie name into the CookieLocaleResolver(String) constructor and removes the setter call.

io.moderne.java.spring.framework7.MigrateCookieLocaleResolverCookieName
mod run . --recipe=io.moderne.java.spring.framework7.MigrateCookieLocaleResolverCookieName

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