mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
lambda -> method reference: exclude receiver/non-receiver ambiguity (IDEA-129924)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// "Replace lambda with method reference" "false"
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.stream.Stream;
|
||||
class Foo {
|
||||
public String bar() {
|
||||
return "foo";
|
||||
}
|
||||
|
||||
public static String bar(Foo foo) {
|
||||
return "bar";
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
public void test() {
|
||||
Stream.of(new Foo()).map(e -> e.b<caret>ar());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user