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
This code should be illegal:
class Foo { String s; public Foo(String s) { this.s = s; } private Foo(int x) { // this is wrong! // ... } }
Instead, this private constructor should be public or protected or package visible.
The text was updated successfully, but these errors were encountered:
@yegor256 are you sure about the example? this(1); should call private ctor in this case
this(1);
Sorry, something went wrong.
@pnatashap you are right, my mistake, I updated the example above
No branches or pull requests
This code should be illegal:
Instead, this private constructor should be public or protected or package visible.
The text was updated successfully, but these errors were encountered: