mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
14 lines
205 B
Java
14 lines
205 B
Java
// "Replace lambda with method reference" "true"
|
|
class Example {
|
|
{
|
|
long[][] avg = collect(long[][]::new);
|
|
}
|
|
|
|
interface P<T> {
|
|
T _(int i);
|
|
}
|
|
|
|
<T> T collect(P<T> p) {
|
|
return null;
|
|
}
|
|
} |