Skip to content

Commit 3e188e3

Browse files
committed
fix compare
1 parent b86f474 commit 3e188e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/taobao/arthas/core/command/klass100/RetransformCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public static synchronized void addRetransformEntry(List<RetransformEntry> retra
411411
Collections.sort(tmp, new Comparator<RetransformEntry>() {
412412
@Override
413413
public int compare(RetransformEntry entry1, RetransformEntry entry2) {
414-
return entry1.getId() - entry2.getId();
414+
return Integer.compare(entry1.getId(), entry2.getId());
415415
}
416416
});
417417
retransformEntries = tmp;

0 commit comments

Comments
 (0)