mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 08:45:34 +07:00
do not check within bounds for super wildcards
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import java.util.Comparator;
|
||||
|
||||
public class Main2 {
|
||||
static class OfRef<T> {
|
||||
public OfRef() {
|
||||
this((Comparator<? super T>) naturalOrder());
|
||||
}
|
||||
|
||||
public OfRef(Comparator<? super T> comparator) {
|
||||
}
|
||||
static <K extends Comparable<? super K>> Comparator<K> naturalOrder() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user