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
I have a constructor that accepts a Foo, where Foo implements/extends Bar.
My class only uses methods from Bar though, so the argument it accepts is overly restrictive.
Warn me when I take a more specific class when a superclass / interface would suffice.
This probably breaks for semantic behavior. e.g. ThreadSafeFoo implements Foo. Maybe an annotation denoting a semantic extension could be added?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
I have a constructor that accepts a Foo, where Foo implements/extends Bar.
My class only uses methods from Bar though, so the argument it accepts is overly restrictive.
What did you want to happen?
Warn me when I take a more specific class when a superclass / interface would suffice.
However...
This probably breaks for semantic behavior. e.g. ThreadSafeFoo implements Foo. Maybe an annotation denoting a semantic extension could be added?
The text was updated successfully, but these errors were encountered: