Find annotations

Apache 2.0

Find all annotations matching the annotation pattern.

org.openrewrite.java.search.FindAnnotations

Required

An annotation pattern, expressed as a method pattern.

Optional

matchMetaAnnotationsBoolean

When enabled, matches on meta annotations of the annotation pattern.

mod run . --recipe=org.openrewrite.java.search.FindAnnotations \ -P annotationPattern='@java.lang.SuppressWarnings("deprecation")'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.