Replace deprecated PropertyNamingStrategy inner classes and constants

Apache 2.0

Replace usages of deprecated PropertyNamingStrategy inner classes and constants with their PropertyNamingStrategies equivalents, introduced in Jackson 2.12.

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

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 type com.fasterxml.jackson.databind.PropertyNamingStrategy.SnakeCaseStrategy to com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy
  2. Change type com.fasterxml.jackson.databind.PropertyNamingStrategy.UpperCamelCaseStrategy to com.fasterxml.jackson.databind.PropertyNamingStrategies.UpperCamelCaseStrategy
  3. Change type com.fasterxml.jackson.databind.PropertyNamingStrategy.LowerCamelCaseStrategy to com.fasterxml.jackson.databind.PropertyNamingStrategies.LowerCamelCaseStrategy
  4. Change type com.fasterxml.jackson.databind.PropertyNamingStrategy.KebabCaseStrategy to com.fasterxml.jackson.databind.PropertyNamingStrategies.KebabCaseStrategy
  5. Change type com.fasterxml.jackson.databind.PropertyNamingStrategy.LowerDotCaseStrategy to com.fasterxml.jackson.databind.PropertyNamingStrategies.LowerDotCaseStrategy
  6. Change type com.fasterxml.jackson.databind.PropertyNamingStrategy.LowerCaseStrategy to com.fasterxml.jackson.databind.PropertyNamingStrategies.LowerCaseStrategy
  7. Replace constant with another constant
  8. Replace constant with another constant
  9. Replace constant with another constant
  10. Replace constant with another constant
  11. Replace constant with another constant
  12. Replace constant with another constant