Skip to content

Commit 6f60ee6

Browse files
committed
use toList()
1 parent 63ddb75 commit 6f60ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-web/src/main/java/org/opengrok/web/PageConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ private static Comparator<File> getFileComparator() {
526526

527527
@VisibleForTesting
528528
public static List<String> getSortedFiles(File[] files) {
529-
return Arrays.stream(files).sorted(getFileComparator()).map(File::getName).collect(Collectors.toList());
529+
return Arrays.stream(files).sorted(getFileComparator()).map(File::getName).toList();
530530
}
531531

532532
/**

0 commit comments

Comments
 (0)