Migrate factory setter calls to builder pattern

Apache 2.0

In Jackson 3, JsonFactory is immutable and new JsonFactory() is no longer the right entry point: the concrete factory lives at tools.jackson.core.json.JsonFactory and is constructed via JsonFactory.builder()...build(). Configuration methods like enable, disable, configure, setCharacterEscapes, etc. must be called on the builder instead. This recipe migrates setter calls to the builder pattern when safe, or adds TODO comments when automatic migration is not possible.

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

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