Migrate ObjectMapper.readValue(URL, ...) to use openStream()

Apache 2.0

Jackson 3.x removed every URL-accepting readValue overload from ObjectMapper. Rewrite call sites to feed URL.openStream() into the surviving readValue(InputStream, ...) overload, which is what readValue(URL, ...) did internally in Jackson 2.x. The caller's checked-exception story is unchanged: URL.openStream() declares IOException, the same checked exception the removed readValue(URL, ...) declared.

org.openrewrite.java.jackson.ReadValueUrlToOpenStream
mod run . --recipe=org.openrewrite.java.jackson.ReadValueUrlToOpenStream

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