mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
introduce parameter: expand method reference to lambda when new parameter introduced (IDEA-152125)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
interface I {
|
||||
boolean m(int a);
|
||||
}
|
||||
|
||||
class A {
|
||||
{
|
||||
I predicate = (a) -> A.alwaysTrue(a, "");
|
||||
}
|
||||
|
||||
private static boolean alwaysTrue(int a, String anObject) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
interface I {
|
||||
boolean m(int a);
|
||||
}
|
||||
|
||||
class A {
|
||||
{
|
||||
I predicate = A::alwaysTrue;
|
||||
}
|
||||
|
||||
private static boolean alwaysTrue(int a) {
|
||||
<selection>""</selection>
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user