Inline Collections.sort(Comparator).
This commit is contained in:
parent
075767a851
commit
74a8e8153e
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue