wrldwzrd89
Member
This is the first of many patches I'll be submitting to clean up some of the generic type warnings now that we've switched over to Java SE 5. This particular patch changes all classes of the form:
class Clazz implements Comparable
to
class Clazz implements Comparable<Clazz>
and fixes all the compile errors the above change produced, by changing the compareTo(Object o) methods to compareTo(Clazz o) instead primarily. Unfortunately, this fix also introduced new problems for classes that extend other classes affected by this change AND that override compareTo. Those errors are also fixed in the patch.
I deliberately limited the scope of this patch to the src folder only. I'll be tackling similar problems in lib in a future patch.
class Clazz implements Comparable
to
class Clazz implements Comparable<Clazz>
and fixes all the compile errors the above change produced, by changing the compareTo(Object o) methods to compareTo(Clazz o) instead primarily. Unfortunately, this fix also introduced new problems for classes that extend other classes affected by this change AND that override compareTo. Those errors are also fixed in the patch.
I deliberately limited the scope of this patch to the src folder only. I'll be tackling similar problems in lib in a future patch.
