Skip to content

Commit

Permalink
Use Collections.sort(List)
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Sep 12, 2024
1 parent 7a41d30 commit e3e5edb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.junit.Test;
Expand Down Expand Up @@ -318,7 +319,7 @@ public void testSort() throws FileSystemException {

// Compare actual and expected list of files
final List<FileObject> expectedFiles = selector.finish();
expectedFiles.sort(null);
Collections.sort(expectedFiles);
assertEquals(expectedFiles.size(), actualFiles.length);
final int count = expectedFiles.size();
for (int i = 0; i < count; i++) {
Expand Down

0 comments on commit e3e5edb

Please sign in to comment.