Update Fastjson for Jakarta EE 10

MSAL

Update Fastjson to be compatible with Jakarta EE 10.

org.openrewrite.java.migrate.jakarta.MigrateFastjsonForJakarta10
mod run . --recipe=org.openrewrite.java.migrate.jakarta.MigrateFastjsonForJakarta10

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 Gradle or Maven dependency com.alibaba:fastjson
  2. Change type ParserConfig to ObjectReaderProvider
  3. Change type com.alibaba.fastjson.parser.deserializer.ExtraProcessor to com.alibaba.fastjson2.filter.ExtraProcessor
  4. Change type ObjectDeserializer to ObjectReader
  5. Change type com.alibaba.fastjson.serializer.AfterFilter to com.alibaba.fastjson2.filter.AfterFilter
  6. Change type com.alibaba.fastjson.serializer.BeforeFilter to com.alibaba.fastjson2.filter.BeforeFilter
  7. Change type com.alibaba.fastjson.serializer.ContextValueFilter to com.alibaba.fastjson2.filter.ContextValueFilter
  8. Change type com.alibaba.fastjson.serializer.LabelFilter to com.alibaba.fastjson2.filter.LabelFilter
  9. Change type com.alibaba.fastjson.serializer.NameFilter to com.alibaba.fastjson2.filter.NameFilter
  10. Change type com.alibaba.fastjson.serializer.PascalNameFilter to com.alibaba.fastjson2.filter.PascalNameFilter
  11. Change type com.alibaba.fastjson.serializer.PropertyFilter to com.alibaba.fastjson2.filter.PropertyFilter
  12. Change type ObjectSerializer to ObjectWriter
  13. Change type SerializeConfig to ObjectWriterProvider
  14. Change type ToStringSerializer to ObjectWriterImplToString
  15. Change type com.alibaba.fastjson.serializer.ValueFilter to com.alibaba.fastjson2.filter.ValueFilter
  16. Change type SerializerFeature to JSONWriter$Feature
  17. Change type Feature to JSONReader$Feature
  18. Change type com.alibaba.fastjson.annotation.JSONCreator to com.alibaba.fastjson2.annotation.JSONCreator
  19. Change type com.alibaba.fastjson.annotation.JSONField to com.alibaba.fastjson2.annotation.JSONField
  20. Change type JSONPOJOBuilder to JSONBuilder
  21. Change type com.alibaba.fastjson.annotation.JSONType to com.alibaba.fastjson2.annotation.JSONType
  22. Rename package name com.alibaba.fastjson to com.alibaba.fastjson2