Skip to content

Commit

Permalink
Document the generated annotation override option
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Nov 23, 2024
1 parent 128786b commit 9502159
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ public class UseStringIsEmpty {

This results in a recipe that can be used to transform code that matches the `@BeforeTemplate` to the `@AfterTemplate`.

## Options
Annotation processors can take options to customize their behavior. Options are passed to the annotation processor via the `-A` flag.

### Change the `@Generated` annotation
By default, the annotation processor will add a `@javax.annotation.Generated` annotation to the generated classes, compatible with Java 8.
On newer Java version you'd perhaps want to pass in the following option:
```
-Arewrite.generatedAnnotation=jakarta.annotation.Generated
```

## Contributing

We appreciate all types of contributions. See the [contributing guide](https://github.com/openrewrite/.github/blob/main/CONTRIBUTING.md) for detailed instructions on how to get started.

0 comments on commit 9502159

Please sign in to comment.