mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
https://web.ea.pages.jetbrains.team/#/issue/396705 if method call provides explicit type arguments then no inference happens and there is no need in protection GitOrigin-RevId: 062e4f6591bbdce03ed7ee8d666bea191bf1ba15
20 lines
365 B
Java
20 lines
365 B
Java
import java.util.function.Function;
|
|
|
|
|
|
class MyTest {
|
|
<T> java.util.List<T> f(Function<T, String> ff) {
|
|
return null;
|
|
}
|
|
|
|
{
|
|
this.<String>f<caret>(s -> {
|
|
switch (s) {
|
|
case null :
|
|
System.out.println();
|
|
break;
|
|
default: return "";
|
|
}
|
|
});
|
|
}
|
|
}
|