Fix for ClassCastException.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1813 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -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>() {
|
||||||
|
|||||||
Reference in New Issue
Block a user