Java: Improved completion for arguments of getField() and getMethod() - extract the type information from forName() and getClass() to provide code assistance (IDEA-167250)

This commit is contained in:
Pavel Dolgov
2017-02-06 15:40:31 +03:00
parent 4a405a6bcd
commit 69b3a8c6cb
16 changed files with 365 additions and 136 deletions
@@ -0,0 +1,16 @@
class Main {
void foo() {
Class<?> d = d();
d = d();
int i = 0;
(d).getDeclaredMethod("<caret>");
}
Class<Test> d() {
return Test.class;
}
}
class Test {
public int method() {}
int method2(int n) {}
}