From 5ae6d3d463c2c975d82c2b1669a7674852fe04f1 Mon Sep 17 00:00:00 2001 From: Dirk Stenger Date: Thu, 4 Jan 2024 14:15:41 +0100 Subject: [PATCH] #591 - Use method sort of List --- .../src/main/java/com/occamlab/te/util/LogUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teamengine-core/src/main/java/com/occamlab/te/util/LogUtils.java b/teamengine-core/src/main/java/com/occamlab/te/util/LogUtils.java index 8f3d5b27..4b072ec7 100644 --- a/teamengine-core/src/main/java/com/occamlab/te/util/LogUtils.java +++ b/teamengine-core/src/main/java/com/occamlab/te/util/LogUtils.java @@ -640,7 +640,7 @@ public boolean accept(File pathname) { } } List allDirsList = Arrays.asList(allDirs); - Collections.sort(allDirsList, new Comparator<>() { + allDirsList.sort(new Comparator<>() { public int compare(File o1, File o2) { if (o1.lastModified() > o2.lastModified()) {