We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d143ac commit 03d9d8aCopy full SHA for 03d9d8a
src/main/java/hudson/tasks/junit/CaseResult.java
@@ -955,9 +955,13 @@ public int compareTo(CaseResult that) {
955
if (this == that) {
956
return 0;
957
}
958
- int r = this.getFullName().compareTo(that.getFullName());
959
- if (r != 0) {
960
- return r;
+ int r1 = this.className.compareTo(that.className);
+ if (r1 != 0) {
+ return r1;
961
+ }
962
+ int r2 = this.getName().compareTo(that.getName());
963
+ if (r2 != 0) {
964
+ return r2;
965
966
// Only equals is exact reference
967
return System.identityHashCode(this) >= System.identityHashCode(that) ? 1 : -1;
0 commit comments