From 6406793274876b973da2a7e1f1052e1edca1d4ef Mon Sep 17 00:00:00 2001 From: Laura Hamelin Date: Mon, 21 Oct 2024 15:59:43 -0700 Subject: [PATCH] DfsBlockCacheConfig: update stream.toList to collect(toList) This change updates usage of stream's list collector to support older jdk versions. Change-Id: Ia066d36aef8ab166efd837d5f6f01e5d1fdd3cb7 --- .../eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java index 0d56689a67..acd7add5a9 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsBlockCacheConfig.java @@ -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())); } } } -- 2.39.5