mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
OC-11340 parameterized resolving (2)
This commit is contained in:
@@ -1576,7 +1576,7 @@ public class ContainerUtil extends ContainerUtilRt {
|
||||
}
|
||||
}
|
||||
|
||||
public static <T> void sort(@NotNull List<T> list, @NotNull Comparator<T> comparator) {
|
||||
public static <T> void sort(@NotNull List<T> list, @NotNull Comparator<? super T> comparator) {
|
||||
int size = list.size();
|
||||
|
||||
if (size < 2) return;
|
||||
|
||||
@@ -92,7 +92,7 @@ public class MostlySingularMultiMap<K, V> implements Serializable {
|
||||
return myMap.isEmpty();
|
||||
}
|
||||
|
||||
public boolean processForKey(@NotNull K key, @NotNull Processor<V> p) {
|
||||
public boolean processForKey(@NotNull K key, @NotNull Processor<? super V> p) {
|
||||
return processValue(p, myMap.get(key));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user