From: Matthias S. <mat...@gm...> - 2006-02-02 16:22:47
|
Hi all, Looking through the JUnit4 sources, I stumbled upon the following code fragment in JUnit4TestAdapter: public JUnit4TestAdapter(Class<? extends Object> newTestClass) { this(newTestClass, JUnit4TestAdapterCache.getDefault()); } Does using generics like this make any sense? EVERY class extends Object, doesn't it? Is there any difference to public JUnit4TestAdapter(Class newTestClass) { this(newTestClass, JUnit4TestAdapterCache.getDefault()); } ? Anything I am missing? Regards, Matt -- DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert: GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl |