mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
16 lines
234 B
Java
16 lines
234 B
Java
// "Replace lambda with method reference" "true-preview"
|
|
|
|
import java.util.function.Function;
|
|
|
|
class Test<T> {
|
|
|
|
|
|
class Bar {
|
|
void f( ){
|
|
Function<Test<T>.Bar, String> r = Bar::foo;
|
|
}
|
|
|
|
private String foo() {}
|
|
}
|
|
}
|