Use modernized javax.lang.model.util APIs

MSAL

Certain javax.lang.model.util APIs have become deprecated and their usages changed, necessitating usage changes.

org.openrewrite.java.migrate.javax.JavaxLangModelUtil
mod run . --recipe=org.openrewrite.java.migrate.javax.JavaxLangModelUtil

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. Use javax.lang.model.util.AbstractAnnotationValueVisitor9
  2. Use javax.lang.model.util.AbstractElementVisitor9
  3. Use javax.lang.model.util.AbstractTypeVisitor9
  4. Use javax.lang.model.util.ElementKindVisitor9
  5. Use javax.lang.model.util.ElementScanner9
  6. Use javax.lang.model.util.SimpleAnnotationValueVisitor9
  7. Use javax.lang.model.util.SimpleElementVisitor9
  8. Use javax.lang.model.util.SimpleTypeVisitor9
  9. Use javax.lang.model.util.TypeKindVisitor9