Migrate JsonFactoryDecorator to TokenStreamFactoryBuilderDecorator

Proprietary

Migrates classes that implement net.logstash.logback.decorate.JsonFactoryDecorator (removed in logstash-logback-encoder 9.0) to implement TokenStreamFactoryBuilderDecorator<JsonFactory, JsonFactoryBuilder>. The decorate(JsonFactory) method is rewritten to take and return a JsonFactoryBuilder, and mutator calls inside the body (e.g. setCharacterEscapes) are folded into the equivalent builder calls (e.g. characterEscapes) where a mapping is known. Unmapped mutators are kept by name with a TODO comment for manual review.

io.moderne.java.spring.boot4.MigrateJsonFactoryDecorator
mod run . --recipe=io.moderne.java.spring.boot4.MigrateJsonFactoryDecorator

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