mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: ed0cf0daf5dbfb034882d49ad5e9c03f264b451e
17 lines
629 B
Java
17 lines
629 B
Java
import java.util.*;
|
|
import java.util.function.Consumer;
|
|
|
|
class NachCollections<K,V> {
|
|
<K1, V1> Consumer<Map.Entry<K1, V1>> consumer(Consumer<Map.Entry<K1, V1>> c) {
|
|
return null;
|
|
}
|
|
|
|
public void forEach(Collection<? extends Map.Entry<K,V>> c1,
|
|
Collection<? super Map.Entry<K,V>> c2,
|
|
Consumer<Map.Entry<K, V>> a) {
|
|
c1.forEach(consumer(a));
|
|
c2.forEach(<error descr="Incompatible types. Found: 'java.util.function.Consumer<java.util.Map.Entry<K,V>>', required: 'java.util.function.Consumer<? super capture<? super java.util.Map.Entry<K,V>>>'">consumer</error>(a));
|
|
}
|
|
}
|
|
|