mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
Java: Check reflection calls - cleanup upon review (IDEA-CR-20616, IDEA-172003)
This commit is contained in:
@@ -43,11 +43,19 @@ class Vararg {
|
||||
myB = Class.forName("B");
|
||||
}
|
||||
|
||||
final Class<?> myB1;
|
||||
|
||||
Vararg(int n) throws Exception {
|
||||
Object bb = Array.newInstance(myB, n);
|
||||
Class<?> bc = bb.getClass();
|
||||
ourA.getConstructor(bc);
|
||||
ourA.getMethod("bar", String.class, bc);
|
||||
myB1 = B.class;
|
||||
}
|
||||
|
||||
void foo1() {
|
||||
ourA.getMethod("bar", myB1);
|
||||
ourA.getMethod(<warning descr="Cannot resolve method 'bar' with specified argument types">"bar"</warning>, myB1, String.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user