aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-09-16 22:40:16 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-09-22 23:31:28 +0200
commita94e54ce872de56d775f213dc4c2e7116a68c4e3 (patch)
tree6f7c0307bade17c6f6bfb24fec9bcc0b39909e3d /org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
parent13bea495c7c21f5be7d44955636756521036fb19 (diff)
downloadjgit-a94e54ce872de56d775f213dc4c2e7116a68c4e3.tar.gz
jgit-a94e54ce872de56d775f213dc4c2e7116a68c4e3.zip
[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
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java2
1 files changed, 1 insertions, 1 deletions
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,