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

FieldNameConstants FIELD_ not support #45

Open
mayvae opened this issue Aug 14, 2020 · 0 comments
Open

FieldNameConstants FIELD_ not support #45

mayvae opened this issue Aug 14, 2020 · 0 comments

Comments

@mayvae
Copy link

mayvae commented Aug 14, 2020

https://projectlombok.org/features/experimental/FieldNameConstants
Starting with lombok v1.18.6, lombok will silently skip generating anything that already exists. You can define the inner Fields enum/class yourself, in which case lombok will add all the enum constants / public static final fields you haven't written yourself.

From lombok v1.16.22 to lombok v1.18.2, this feature generated constants inside the type directly; the name of these fields would for example turn field exampleFieldName into public static final String FIELD_EXAMPLE_FIELD_NAME = "exampleFieldName";. The prefix and suffix (here, FIELD_, and the empty string) were configurable. Starting with lombok v1.18.4 this feature has been redesigned into generating an inner type as described above.

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

1 participant