Java Generics: Overriding generic methods, wildcard shorthand?
问题 If I have an interface with a generic method like the following: public interface Thing { void <T extends Comparable<? super T>> doSomething(List<T> objects); } I need that ugly generic typespec in some places, but most implementations don't actually need it: public class ICareAboutSortingThing implements Thing { @Override public void <T extends Comparable<? super T>> doSomething(List<T> objects) { ... } } public class IDontCareAboutSortingThingx100 implements Thing { @Override public void <T