Remove deprecated APIs not supported in CDI 4.0

MSAL

Deprecated APIs have been removed in CDI 4.0. This recipe removes and updates the corresponding deprecated methods.

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

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. Remove Bean.isNullable()
  2. Replace BeforeBeanDiscovery.addAnnotatedType(AnnotatedType) with addAnnotatedType(AnnotatedType, String)
  3. Update fireEvent() and createInjectionTarget() calls