Rename Jackson 2.x methods to 3.x equivalents for ObjectNode

Apache 2.0

Rename ObjectNode methods deprecated in Jackson 2 and removed in 3.x (put(String, JsonNode) to set, putAll to setAll).

org.openrewrite.java.jackson.UpgradeJackson_2_3_ObjectNodeMethodRenames
mod run . --recipe=org.openrewrite.java.jackson.UpgradeJackson_2_3_ObjectNodeMethodRenames

Install 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.

  1. Change method name com.fasterxml.jackson.databind.node.ObjectNode put(String, com.fasterxml.jackson.databind.JsonNode) to set
  2. Change method name com.fasterxml.jackson.databind.node.ObjectNode putAll(..) to setAll