do not check within bounds for super wildcards

This commit is contained in:
anna
2013-02-15 16:28:13 +01:00
parent 1b51773d43
commit e120d0af1f
3 changed files with 32 additions and 10 deletions
@@ -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;
}
}
}