Lines 7-12
Link Here
|
7 |
* |
7 |
* |
8 |
* Contributors: |
8 |
* Contributors: |
9 |
* IBM Corporation - initial API and implementation |
9 |
* IBM Corporation - initial API and implementation |
|
|
10 |
* daolaf@gmail.com - Contribution for bug 3292227 |
10 |
*******************************************************************************/ |
11 |
*******************************************************************************/ |
11 |
package org.eclipse.jdt.internal.compiler.util; |
12 |
package org.eclipse.jdt.internal.compiler.util; |
12 |
|
13 |
|
Lines 677-683
Link Here
|
677 |
public static void reverseQuickSort(char[][] list, int left, int right) { |
678 |
public static void reverseQuickSort(char[][] list, int left, int right) { |
678 |
int original_left= left; |
679 |
int original_left= left; |
679 |
int original_right= right; |
680 |
int original_right= right; |
680 |
char[] mid= list[(right + left) / 2]; |
681 |
char[] mid= list[left + ((right-left)/2)]; |
681 |
do { |
682 |
do { |
682 |
while (CharOperation.compareTo(list[left], mid) > 0) { |
683 |
while (CharOperation.compareTo(list[left], mid) > 0) { |
683 |
left++; |
684 |
left++; |
Lines 703-709
Link Here
|
703 |
public static void reverseQuickSort(char[][] list, int left, int right, int[] result) { |
704 |
public static void reverseQuickSort(char[][] list, int left, int right, int[] result) { |
704 |
int original_left= left; |
705 |
int original_left= left; |
705 |
int original_right= right; |
706 |
int original_right= right; |
706 |
char[] mid= list[(right + left) / 2]; |
707 |
char[] mid= list[left + ((right-left)/2)]; |
707 |
do { |
708 |
do { |
708 |
while (CharOperation.compareTo(list[left], mid) > 0) { |
709 |
while (CharOperation.compareTo(list[left], mid) > 0) { |
709 |
left++; |
710 |
left++; |