This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
commit e3e5edb86115a84a703e28fc3ef0389d33d8b20c Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Sep 12 12:17:25 2024 -0400 Use Collections.sort(List) --- .../src/test/java/org/apache/commons/vfs2/ProviderReadTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderReadTests.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderReadTests.java index 6834991c..a02f42b7 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderReadTests.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderReadTests.java @@ -21,6 +21,7 @@ import static org.apache.commons.vfs2.VfsTestUtils.assertSameMessage; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; +import java.util.Collections; import java.util.List; import org.junit.Test; @@ -318,7 +319,7 @@ public class ProviderReadTests extends AbstractProviderTestCase { // 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++) {