google / google/error-prone

[Feature Request] Partial implementation

Open
#4,777 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.