Fix for ClassCastException.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1813 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
andrzej
2006-04-10 18:56:31 +00:00
parent e27af6bfb3
commit b51d8df102
@@ -81,7 +81,7 @@ public class ComparableArrayList<T extends Comparable<? super T>>
*/ */
public int binarySearch (T key) public int binarySearch (T key)
{ {
return ArrayUtil.binarySearch(_elements, 0, _size, key); return binarySearch(key, _comp);
} }
protected transient Comparator<T> _comp = new Comparator<T>() { protected transient Comparator<T> _comp = new Comparator<T>() {