mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
d5d4f19105
commit
e58416919f
1 changed files with 11 additions and 11 deletions
|
@ -28,13 +28,13 @@ public class DefaultFragmentBindingComparator implements IIndexFragmentBindingCo
|
|||
return cmp;
|
||||
}
|
||||
|
||||
private int compareQualifiedNames(String[] afqn, String[] bfqn) {
|
||||
if(afqn.length < bfqn.length)
|
||||
private int compareQualifiedNames(String[] a, String[] b) {
|
||||
if (a.length < b.length)
|
||||
return -1;
|
||||
if(afqn.length > bfqn.length)
|
||||
if (a.length > b.length)
|
||||
return 1;
|
||||
for(int i=0; i<afqn.length; i++) {
|
||||
int cmp= afqn[i].compareTo(bfqn[i]);
|
||||
for(int i= 0; i < a.length; i++) {
|
||||
int cmp= a[i].compareTo(b[i]);
|
||||
if (cmp != 0)
|
||||
return cmp;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue