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 feature Currently, a @Getter(lazy = true) requires the annotated field to be marked final.
@Getter(lazy = true)
final
It would be great if this requirement was lifted, and a generated setter for that field was something like (extending the sample for the docs) ...
With lombok:
@Getter(lazy=true) @Setter private double[] cached = expensive();
Without lombok:
public double[] getCached() { ... unchanged from current behaviour ... } public void setCached(double[] actualValue) { this.cached.set(actualValue == null ? this.cached : actualValue); }
Describe the target audience This would be useful anywhere the "expensive" value is not immutable.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the feature
Currently, a
@Getter(lazy = true)
requires the annotated field to be markedfinal
.It would be great if this requirement was lifted, and a generated setter for that field was something like (extending the sample for the docs) ...
With lombok:
Without lombok:
Describe the target audience
This would be useful anywhere the "expensive" value is not immutable.
The text was updated successfully, but these errors were encountered: