mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-172425 Add tests to check that generated code is correct
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
public class WithReflectionAccess {
|
||||
private int field = 10;
|
||||
|
||||
private WithReflectionAccess(int value) {
|
||||
field = value;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
WithReflectionAccess instance = new WithReflectionAccess(2000);
|
||||
<caret>int a = 42;
|
||||
}
|
||||
|
||||
private static void method() {
|
||||
|
||||
}
|
||||
|
||||
private int method(int arg) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
private Object method(WithReflectionAccess arg) {
|
||||
return arg;
|
||||
}
|
||||
|
||||
public static void apply(Runnable runnable) {
|
||||
runnable.run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user