mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 18:20:52 +07:00
17 lines
456 B
Java
17 lines
456 B
Java
// "Replace lambda with method reference" "true"
|
|
import java.util.function.BiFunction;
|
|
import java.util.function.Function;
|
|
import java.util.function.Supplier;
|
|
|
|
class Test {
|
|
public Test(String s) {}
|
|
|
|
public static void define(Supplier<?> moduleConstructor){}
|
|
public static void define(Function<?, ?> moduleConstructor){}
|
|
public static void define(BiFunction<?, ?, ?> moduleConstructor){}
|
|
|
|
{
|
|
define((Function<String, Object>) Test::new);
|
|
}
|
|
}
|