mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
change signature: convert method reference to lambda if SAM method signature was changed (IDEA-150138)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
interface I {
|
||||
void m<caret>(int a, int b);
|
||||
}
|
||||
|
||||
class Test {
|
||||
{
|
||||
I i = this::foo;
|
||||
}
|
||||
|
||||
private void foo(int a, int b) {}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
interface I {
|
||||
void m(int b, int a);
|
||||
}
|
||||
|
||||
class Test {
|
||||
{
|
||||
I i = (b, a) -> foo(a, b);
|
||||
}
|
||||
|
||||
private void foo(int a, int b) {}
|
||||
}
|
||||
Reference in New Issue
Block a user