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

Set prefixes for @Getter #3593

Open
NadChel opened this issue Jan 23, 2024 · 2 comments
Open

Set prefixes for @Getter #3593

NadChel opened this issue Jan 23, 2024 · 2 comments

Comments

@NadChel
Copy link

NadChel commented Jan 23, 2024

It would be nice to be able to specify getter prefixes (including empty strings). I sometimes find mysef avoiding @Getter simply because I may in some cases prefer non-prefixed getters a-la Java records

@Getter(prefix="")

A similar feature already exists for @Builder

@janrieke
Copy link
Contributor

You can use @Accessors(fluent=true) for record-style getters and setters.
I don't see any other reasonable alternative prefix than the empty string.

@NadChel
Copy link
Author

NadChel commented Jan 23, 2024

You can use @Accessors(fluent=true) for record-style getters and setters. I don't see any other reasonable alternative prefix than the empty string.

It would affect both getters and setters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants