Migrate setConnectTimeout(int) to ConnectionConfig setConnectTimeout(..)

MSAL

setConnectTimeout(..) was deprecated in Spring Framework 6.2 and removed in 7.0. This recipe migrates local PoolingHttpClientConnectionManager instances that are wired into the request factory, and adds a comment when the configuration is not safe to migrate automatically.

org.openrewrite.java.spring.framework.HttpComponentsClientHttpRequestFactoryConnectTimeout
mod run . --recipe=org.openrewrite.java.spring.framework.HttpComponentsClientHttpRequestFactoryConnectTimeout

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

Recipe list

It runs these recipes, in this order.

  1. Move setConnectTimeout(int) to a locally wired ConnectionConfig
  2. Add comment to method invocations