Skip to content

Commit 1b12663

Browse files
Fix sorting comparator in CombinationSumTest
1 parent 4e1cdd2 commit 1b12663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/thealgorithms/backtracking/CombinationSumTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private static List<List<Integer>> norm(List<List<Integer>> x) {
1616
q.sort(Integer::compare);
1717
y.add(q);
1818
}
19-
y.sort(Comparator.<List<Integer>, Integer>comparing(List::size).thenComparing(a -> a.toString()));
19+
y.sort(Comparator.comparingInt(List::size).thenComparing(Object::toString));
2020
return y;
2121
}
2222

0 commit comments

Comments
 (0)