MoreElements.getLocalAndInheritedMethods or alternative should resolve type parameters if applicable
未关闭
Component: common
P3
type=enhancement
- 主要语言
- Java
- 星标
- 10.6k
- 派生
- 1.2k
- 平均合并
- 6 小时 32 分钟
- 30 天内合并 PR
- 13
描述
I have the following class hierarchy:
```
public interface ASuperInterface {
void test(A a);
}
public interface AnInterface extends ASuperInterface {
void test();
}
```
Calling `MoreElements.getLocalAndInheritedMethods` on the element representing `AnInterface` gives me a method `void test(A a)` instead of a method `void test(String a)`.
If this is intended and there is no other recommended way to resolve type parameters like this, I think auto-common should include an helper to do so.
贡献指南
评估
这个 Issue 还没有评估数据。