Remove annotation

Apache 2.0

Remove matching annotations wherever they occur.

org.openrewrite.java.RemoveAnnotation

Required

An annotation pattern, expressed as a method pattern.

mod run . --recipe=org.openrewrite.java.RemoveAnnotation \ -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.