Modernize legacy jackson-core feature constants
Apache 2.0Jackson 2.10 moved most flag constants out of JsonParser.Feature and JsonGenerator.Feature into the new JsonReadFeature / JsonWriteFeature (for JSON-specific flags) and StreamReadFeature / StreamWriteFeature (for format-agnostic flags). Jackson 3 keeps only the modern locations. This recipe rewrites every legacy constant to its Jackson 2-modern equivalent so the rest of the Jackson 2 → 3 pipeline (in particular the builder migrations) sees flags the modern API will accept.
org. openrewrite. java. jackson. UpgradeJackson_2_3_ModernizeJacksonCoreFeaturesmod run . --recipe= org. openrewrite. java. jackson. UpgradeJackson_2_3_ModernizeJacksonCoreFeaturesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant