Use Collections.sort(List) for clarity

This commit is contained in:
Gary Gregory 2024-06-23 14:20:21 -04:00
parent 6d4ea100ff
commit de1d2732dd
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public abstract class AbstractSortedBidiMapTest<K extends Comparable<K>, V exten
public AbstractSortedBidiMapTest(final String testName) {
super(testName);
sortedKeys = getAsList(getSampleKeys());
sortedKeys.sort(null);
Collections.sort(sortedKeys);
sortedKeys = Collections.unmodifiableList(sortedKeys);
final Map<K, V> map = new TreeMap<>();