mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
21 lines
373 B
Java
21 lines
373 B
Java
// "Replace with lambda" "false"
|
|
import java.util.*;
|
|
class Test2 {
|
|
|
|
interface I<X> {
|
|
X foo(List<X> list);
|
|
}
|
|
|
|
static <T> I<T> bar(I<T> i){return i;}
|
|
|
|
{
|
|
bar(new I<Stri<caret>ng>() {
|
|
class UF {}
|
|
@Override
|
|
public String foo(List<String> list) {
|
|
return null;
|
|
}
|
|
});
|
|
}
|
|
}
|