Remove redundant Jackson 3 feature flag configurations

Apache 2.0

Remove ObjectMapper feature flag configurations that set values to their new Jackson 3 defaults. For example, disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) and configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) are redundant since this is now disabled by default in Jackson 3.

org.openrewrite.java.jackson.RemoveRedundantFeatureFlags

Required

The fully qualified feature flag name that has a new default in Jackson 3. Format: ClassName.FEATURE_NAME (e.g., MapperFeature.SORT_PROPERTIES_ALPHABETICALLY).

The new default boolean value for this feature flag in Jackson 3.

mod run . --recipe=org.openrewrite.java.jackson.RemoveRedundantFeatureFlags \ -P featureName=MapperFeature.SORT_PROPERTIES_ALPHABETICALLY \ -P newDefaultValue=true

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