Re: [collections] ComparableComparator executes all comparisonstwice!?

2003-01-09 Thread Rodney Waldhoff
While we're at it, I wonder if it might be better to remove a lot of the "checking" going on inside ComparableComparator.compare. I'm thinking something as simple as: public int compare(Object o1, Object o2) { return ((Comparable)o1).compareTo(o2); } and letting Java and/or the underlying Comp

Re: [collections] ComparableComparator executes all comparisonstwice!?

2003-01-09 Thread Henri Yandell
On Wed, 8 Jan 2003, Stephen Colebourne wrote: > If we do go to 3.0, then could we delete the deprecated iterators and > comparators in the main package? And if this gets chosen as a fine way to do things, could we document it in the DEV-GUIDE? ie) Unwanted code is deprecated for the next major