mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
Java: Improved inspection "MethodHandle/VarHandle type mismatch" - show candidates for replacement of method/constructor in a separate pop-up menu (IDEA-167318)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// "Change type to 'int'" "true"
|
||||
import java.lang.invoke.*;
|
||||
|
||||
public class Main {
|
||||
void foo() throws Throwable {
|
||||
MethodHandles.Lookup lookup = MethodHandles.lookup();
|
||||
lookup.findVarHandle(Test.class, "myInt", <caret>String.class);
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
public int myInt;
|
||||
}
|
||||
Reference in New Issue
Block a user