Use javax.lang.model.util.AbstractAnnotationValueVisitor9

MSAL

Use javax.lang.model.util.AbstractAnnotationValueVisitor9 instead of the deprecated javax.lang.model.util.AbstractAnnotationValueVisitor6 in Java 9 or higher.

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

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 AbstractAnnotationValueVisitor6 to AbstractAnnotationValueVisitor9