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
The plugin reports Constructor makes call to non-final method when a constructor calls a private method.
public class SomeClass { private final String s; public SomeClass(String s) { doSomething(); this.s = s; } private void doSomething() { ... } }
A bug (Constructor makes call to non-final method) is reported.
No bug is reported, as private methods are implicitly final and cannot be overridden, therefore do not pose an issue.
The text was updated successfully, but these errors were encountered:
does doSomething call public methods in the class?
Sorry, something went wrong.
No branches or pull requests
The plugin reports Constructor makes call to non-final method when a constructor calls a private method.
Environment
Current Behavior
A bug (Constructor makes call to non-final method) is reported.
Expected Behavior
No bug is reported, as private methods are implicitly final and cannot be overridden, therefore do not pose an issue.
The text was updated successfully, but these errors were encountered: