]> source.dussan.org Git - jgit.git/commitdiff
DfsBlockCacheConfig: update stream.toList to collect(toList) 52/1202852/2
authorLaura Hamelin <haowl@google.com>
Mon, 21 Oct 2024 22:59:43 +0000 (15:59 -0700)
committerLaura Hamelin <haowl@google.com>
Mon, 21 Oct 2024 23:06:19 +0000 (16:06 -0700)
This change updates usage of stream's list collector to support older
jdk versions.

Change-Id: Ia066d36aef8ab166efd837d5f6f01e5d1fdd3cb7

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java

index 0d56689a67f93b95b42fa81555248489d041cee4..acd7add5a904e25f834aed0d5d4e9406fe618ad6 100644 (file)
@@ -581,7 +581,7 @@ public class DfsBlockCacheConfig {
                void print(String linePrefix, String pad, PrintWriter writer) {
                        packExtCacheConfiguration.print(linePrefix, pad, writer);
                        writer.println(linePrefix + pad + "PackExts: "
-                                       + packExts.stream().sorted().toList());
+                                       + packExts.stream().sorted().collect(Collectors.toList()));
                }
        }
 }