mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
make method static: warn about broken method references if filed or class need to be passed; NPE (EA-66661 - NPE: MakeMethodStaticProcessor.changeExternalUsage)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class Test4 {
|
||||
void test() {
|
||||
Runnable f = Test4::yyy;
|
||||
}
|
||||
|
||||
String myField = "";
|
||||
static void yyy() {
|
||||
System.out.println(myField);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class Test4 {
|
||||
void test() {
|
||||
Runnable f = this::yyy;
|
||||
}
|
||||
|
||||
String myField = "";
|
||||
void yy<caret>y() {
|
||||
System.out.println(myField);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user