mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
lambda -> method refs: collapse when acceptable method without supers found
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
import java.io.PrintStream;
|
||||
import java.util.function.BiConsumer;
|
||||
|
||||
class Test {
|
||||
{
|
||||
BiConsumer<PrintStream, String> printer = PrintStream::println;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Replace lambda with method reference" "true"
|
||||
import java.io.PrintStream;
|
||||
import java.util.function.BiConsumer;
|
||||
|
||||
class Test {
|
||||
{
|
||||
BiConsumer<PrintStream, String> printer = (printStream, x) -> printSt<caret>ream.println(x);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user