mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
ensure additional constrains are collected based on ground functional type (IDEA-167277)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.function.Supplier;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Main {
|
||||
|
||||
public void main(Stream<Entry<String, Object>> stream) {
|
||||
supp(() -> stream.collect(Collectors. toMap(Entry::getKey, Entry::getValue)));
|
||||
supp(() -> stream.collect(Collectors.toMap(e -> e.getKey(), e -> e.getValue())));
|
||||
}
|
||||
|
||||
void supp(Supplier<? extends Map<String, Object>> s) {}
|
||||
}
|
||||
Reference in New Issue
Block a user