Remove annotation attribute

Apache 2.0

Some annotations accept arguments. This recipe removes an existing attribute.

org.openrewrite.java.RemoveAnnotationAttribute

Required

The fully qualified name of the annotation.

The name of attribute to remove.

mod run . --recipe=org.openrewrite.java.RemoveAnnotationAttribute \ -P annotationType=org.junit.Test \ -P attributeName=timeout

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