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
Describe the bug Adding @Builder.Default to a field causes it to not be in the builder class.
@Builder.Default
To Reproduce
@Builder public class Something { @Builder.Default private List<String> args = new ArrayList<>(); public static class SomethingBuilder { public SomethingBuilder args(String... str) { if (this.args == null) { // This field doesn't this.args = new ArrayList<>(); // This field exists this.args$set = true; } return this; } } }
Expected behavior To be able to access the args variable in the builder class override.
Version info (please complete the following information):
Additional context This worked in a previous version.
The text was updated successfully, but these errors were encountered:
Ok. I guess I didn't read the patch notes deep enough #2115
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Adding
@Builder.Default
to a field causes it to not be in the builder class.To Reproduce
Expected behavior
To be able to access the args variable in the builder class override.
Version info (please complete the following information):
Additional context
This worked in a previous version.
The text was updated successfully, but these errors were encountered: