mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
convert static method to instance: expand method reference to lambda, fix qualifier when needed
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class Bar0 {
|
||||
void foo(Integer i) { }
|
||||
}
|
||||
class Bar {
|
||||
void f() {
|
||||
I r = (i, bar) -> bar.foo(i);
|
||||
}
|
||||
|
||||
}
|
||||
interface I {
|
||||
void m(Integer i, Bar0 b);
|
||||
}
|
||||
Reference in New Issue
Block a user