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
Library could support compact constructors in java records:
record Foo(String name, int x, int y) { Foo { Objects.requireNonNull(name); } }
Currently, as a workaround you can ovveride the whole default constructor:
record Foo(String name, int x, int y) { Foo(String name, int x, int y) { this.name = Objects.requireNonNull(name); this.x = x; this.y = y; } }
The text was updated successfully, but these errors were encountered:
Good idea, want to provide a PR?
Sorry, something went wrong.
Would like, although I'm not sure when I'll have some time to ty it out, so not promising nothing :)
No branches or pull requests
Library could support compact constructors in java records:
Currently, as a workaround you can ovveride the whole default constructor:
The text was updated successfully, but these errors were encountered: