[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
This commit is contained in:
Matthias Sohn 2023-09-16 22:40:16 +02:00
parent 13bea495c7
commit a94e54ce87
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ public static final class FileStoreAttributes {
* @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,