Flag mutators called by an ObjectMapper subclass on itself
Apache 2.0Jackson 3's ObjectMapper is immutable, and setVisibility(..), registerModule(..) and the like no longer exist. A subclass that configures itself in its constructor or initializer has no builder to fold these calls into, so this recipe adds a TODO comment to each of them for manual migration.
org. openrewrite. java. jackson. CommentMutatorsInObjectMapperSubclassesmod run . --recipe= org. openrewrite. java. jackson. CommentMutatorsInObjectMapperSubclassesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.