OC-11340 parameterized resolving (2)
[idea/community.git] / platform / util / src / com / intellij / util / containers / ContainerUtil.java
index 9f63e177e0a610e91c9bd8538cfda908100bf13f..4beefadad7e95dcf451d3b4ac8a9744814e29306 100644 (file)
@@ -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;