From 50f310770d22891a915b0227ebfbd83674935aad Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Fri, 5 Oct 2018 14:44:14 +0200 Subject: [PATCH] Collections.sort instead of non-java7 List.sort --- src/be/nikiroo/utils/test/TestCase.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/be/nikiroo/utils/test/TestCase.java b/src/be/nikiroo/utils/test/TestCase.java index 2e46a7b5..0210e2fe 100644 --- a/src/be/nikiroo/utils/test/TestCase.java +++ b/src/be/nikiroo/utils/test/TestCase.java @@ -2,6 +2,7 @@ package be.nikiroo.utils.test; import java.io.File; import java.util.Arrays; +import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -405,9 +406,9 @@ abstract public class TestCase { expected.isDirectory(), actual.isDirectory()); List expectedFiles = Arrays.asList(expected.list()); - expectedFiles.sort(null); + Collections.sort(expectedFiles); List actualFiles = Arrays.asList(actual.list()); - actualFiles.sort(null); + Collections.sort(actualFiles); assertEquals(errorMessage, expectedFiles, actualFiles); for (int i = 0; i < actualFiles.size(); i++) { -- 2.27.0