Skip to content

Commit

Permalink
#591 - Use method sort of List
Browse files Browse the repository at this point in the history
  • Loading branch information
dstenger committed Jan 4, 2024
1 parent 89ab0be commit 5ae6d3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ public boolean accept(File pathname) {
}
}
List<File> 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()) {
Expand Down

0 comments on commit 5ae6d3d

Please sign in to comment.