We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tested on 1.18.2 and 1.16.18
@ToString enum SampleEnum { SOME_FIELD; }
Currently above enum is compiled into below code.
enum SampleEnum { SOME_FIELD; public String toString() { return "SampleEnum ()"; } }
So whenever i run toString on List I will get N "SampleEnum()" strings.
It should be compiled to:
enum SampleEnum { SOME_FIELD; public String toString() { return "SampleEnum (name())"; } }
or anything that indicates enums field name.
The text was updated successfully, but these errors were encountered:
I suggest to use return "SampleEnum." + name() + "()";
return "SampleEnum." + name() + "()";
Sorry, something went wrong.
7e79316
this is now available in edge release: https://projectlombok.org/download-edge
No branches or pull requests
Tested on 1.18.2 and 1.16.18
Currently above enum is compiled into below code.
So whenever i run toString on List I will get N "SampleEnum()" strings.
It should be compiled to:
or anything that indicates enums field name.
The text was updated successfully, but these errors were encountered: