mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
20 lines
350 B
Java
20 lines
350 B
Java
// "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 -> Foo.b<caret>ar());
|
|
}
|
|
}
|