mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
old inference (IDEA-157398)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
class Test {
|
||||
private void foo(Map<String, ? extends Collection<?>> map, String severity) {
|
||||
firstNonNull(map.get(severity), Collections.emptyList());
|
||||
}
|
||||
private static <T> T firstNonNull(T first, T second) {
|
||||
return first;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user