|
|
@ -185,10 +185,12 @@ public class ClassIdentifier extends Identifier { |
|
|
|
public int compare(Object o1, Object o2) { |
|
|
|
public int compare(Object o1, Object o2) { |
|
|
|
Identifier i1 = (Identifier)o1; |
|
|
|
Identifier i1 = (Identifier)o1; |
|
|
|
Identifier i2 = (Identifier)o2; |
|
|
|
Identifier i2 = (Identifier)o2; |
|
|
|
boolean special1 = (i1.equals("<init>") |
|
|
|
String name1 = i1.getName(); |
|
|
|
|| i1.equals("<clinit>")); |
|
|
|
String name2 = i2.getName(); |
|
|
|
boolean special2 = (i2.equals("<init>") |
|
|
|
boolean special1 = (name1.equals("<init>") |
|
|
|
|| i2.equals("<clinit>")); |
|
|
|
|| name1.equals("<clinit>")); |
|
|
|
|
|
|
|
boolean special2 = (name2.equals("<init>") |
|
|
|
|
|
|
|
|| name2.equals("<clinit>")); |
|
|
|
// Put constructors at the beginning
|
|
|
|
// Put constructors at the beginning
|
|
|
|
if (special1 != special2) { |
|
|
|
if (special1 != special2) { |
|
|
|
return special1 ? -1 : 1; |
|
|
|
return special1 ? -1 : 1; |
|
|
|