Remove JavaClass.getAllMethods()/getAllFields()

Their behavior is different in PSI and reflection (two things that this
interface is supposed to unify), so there's no point in making it interface
methods, rather we should just walk supertype hierarchy manually

Also make JavaClassImpl.getSupertypes() invoke PsiClass.getSuperTypes(),
because it also contains java.lang.Object for interfaces, which makes
equals/hashCode/toString appear in interfaces' getAllMethods() as well
This commit is contained in:
Alexander Udalov
2014-09-02 11:30:05 +04:00
parent f39c3041d2
commit 73a92c6aa9
7 changed files with 48 additions and 36 deletions

View File

@@ -0,0 +1,4 @@
package test;
public interface EmptyInterface {
}