File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
junit-platform-commons/src/main/java/org/junit/platform/commons/util Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -1369,16 +1369,7 @@ private static List<Method> toSortedMutableList(Method[] methods) {
13691369 * implementation.
13701370 */
13711371 private static int defaultFieldSorter (Field field1 , Field field2 ) {
1372- String name1 = field1 .getName ();
1373- String name2 = field2 .getName ();
1374- int comparison = Integer .compare (name1 .hashCode (), name2 .hashCode ());
1375- if (comparison == 0 ) {
1376- comparison = name1 .compareTo (name2 );
1377- if (comparison == 0 ) {
1378- comparison = field1 .toString ().compareTo (field2 .toString ());
1379- }
1380- }
1381- return comparison ;
1372+ return Integer .compare (field1 .getName ().hashCode (), field2 .getName ().hashCode ());
13821373 }
13831374
13841375 /**
You can’t perform that action at this time.
0 commit comments