Inline Collections.sort(Comparator).

This commit is contained in:
Gary Gregory 2022-02-13 11:27:23 -05:00
parent 075767a851
commit 74a8e8153e
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ public class CSVRecordTest {
map.put("ZColumn", "NewValue");
// check:
final ArrayList<String> list = new ArrayList<>(map.values());
Collections.sort(list);
list.sort(null);
printer.printRecord(list);
assertEquals("A,B,C,NewValue" + CSVFormat.DEFAULT.getRecordSeparator(), printer.getOut().toString());
}