You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose interface A defines 2 methods getX() and getY().
Now suppose class B implements getX() but doesn't implement the interface A.
I would like a warning if a class C that extends class B implements interface A (and method getY()) but not getX() (since it is already provided by the superclass).
I discovered this by trying to inline the interface A (since I noticed it had only one implementation). The IDE did that, but converted class B into an abstract class so that the "unimplemented" methods would be retained in that class.
The text was updated successfully, but these errors were encountered:
Suppose interface A defines 2 methods
getX()
andgetY()
.Now suppose class B implements
getX()
but doesn't implement the interface A.I would like a warning if a class C that extends class B implements interface A (and method
getY()
) but notgetX()
(since it is already provided by the superclass).I discovered this by trying to inline the interface A (since I noticed it had only one implementation). The IDE did that, but converted class B into an abstract class so that the "unimplemented" methods would be retained in that class.
The text was updated successfully, but these errors were encountered: