Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Lombok @Getter #3157

Closed
blipper opened this issue Apr 24, 2023 · 1 comment · Fixed by openrewrite/rewrite-migrate-java#623
Closed

Auto Lombok @Getter #3157

blipper opened this issue Apr 24, 2023 · 1 comment · Fixed by openrewrite/rewrite-migrate-java#623
Labels
recipe Requested Recipe

Comments

@blipper
Copy link
Contributor

blipper commented Apr 24, 2023

For any simple getter that iff retrieves from a private field with the same bean style name as the getter remove the getter and replace with a @Getter attribute

https://projectlombok.org/features/GetterSetter

@timtebeek timtebeek added the recipe Requested Recipe label Apr 24, 2023
@timtebeek timtebeek moved this to Recipes Wanted in OpenRewrite Apr 24, 2023
@rpau rpau added this to the Migrate from Lombok to Java 17 milestone May 23, 2023
@timtebeek timtebeek removed this from the Support Java major migrations milestone Nov 30, 2023
@timo-a
Copy link

timo-a commented Oct 20, 2024

Does this work for you?
https://timo-a.github.io/rewrite-recipe-starter/component-singleton/0/recipes/lombok/ConvertGetter.html

In case the docs URL changes:
recipe io.github.timoa.lombok.ConvertGetter in https://mvnrepository.com/artifact/io.github.timo-a/rewrite-recipe-starter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe Requested Recipe
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants