mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-19 09:08:32 +07:00
dd689d3a39
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
13 lines
301 B
Java
13 lines
301 B
Java
// "Replace with 'findStaticSetter'" "true-preview"
|
|
import java.lang.invoke.*;
|
|
|
|
public class Main {
|
|
void foo() throws Throwable {
|
|
MethodHandles.Lookup lookup = MethodHandles.lookup();
|
|
lookup.findStaticSetter(Test.class, "ourInt", int.class);
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public static int ourInt;
|
|
} |