mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
23 lines
420 B
Java
23 lines
420 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>() {
|
|
{
|
|
System.out.println("hi!");
|
|
}
|
|
@Override
|
|
public String foo(List<String> list) {
|
|
return null;
|
|
}
|
|
});
|
|
}
|
|
}
|