From a94e54ce872de56d775f213dc4c2e7116a68c4e3 Mon Sep 17 00:00:00 2001
From: Matthias Sohn <matthias.sohn@sap.com>
Date: Sat, 16 Sep 2023 22:40:16 +0200
Subject: [errorprone] FileStoreAttributes#FUTURE_RUNNER: Fix corePoolSize

[ErroneousThreadPoolConstructorChecker] Thread pool size will never go
beyond corePoolSize if an unbounded queue is used.

see https://errorprone.info/bugpattern/ErroneousThreadPoolConstructorChecker

Change-Id: Icdeaffa05301567611682da86130440f863f2ecc
---
 org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'org.eclipse.jgit')

diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
index 92ba62fa41..eadd34c3d3 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
@@ -265,7 +265,7 @@ public abstract class FS {
 		 * @see java.util.concurrent.Executors#newCachedThreadPool()
 		 */
 		private static final ExecutorService FUTURE_RUNNER = new ThreadPoolExecutor(
-				0, 5, 30L, TimeUnit.SECONDS,
+				5, 5, 30L, TimeUnit.SECONDS,
 				new LinkedBlockingQueue<>(),
 				runnable -> {
 					Thread t = new Thread(runnable,
-- 
cgit v1.2.3