Migrate mapper setter calls to builder pattern
Apache 2.0In Jackson 3, JsonMapper and other format-aligned mappers are immutable. Configuration methods like setFilterProvider, addMixIn, disable, enable, 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. MigrateMapperSettersToBuildermod run . --recipe= org. openrewrite. java. jackson. MigrateMapperSettersToBuilderInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.