Current: public static void quickSort(Object[] a) { quickSort1(a, 0, a.length); }
proposed: public static <T extends Comparable<? super T>> static void quickSort(T[]) { ... } The contract is that the objects implement Comparable. I took the above from Collections.sort. There are no current callers of this function.