Add comment to import statement

Apache 2.0

Add a comment to an import statement in a Java source file.

org.openrewrite.java.AddCommentToImport

Required

The comment to add.

A type pattern that is used to find matching imports uses.

mod run . --recipe=org.openrewrite.java.AddCommentToImport \ -P comment='This is a comment.' \ -P typePattern='org.springframework..*'

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