This is an automated email from the ASF dual-hosted git repository.

ddanielr pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/2.1 by this push:
     new 1321f26e67 Mark builder as notThreadSafe for spotbugs (#6593)
1321f26e67 is described below

commit 1321f26e674ed8a09399950949227f26ea700656
Author: Daniel Roberts <[email protected]>
AuthorDate: Fri Oct 16 15:53:09 2026 -0400

    Mark builder as notThreadSafe for spotbugs (#6593)
    
    A newer spotbugs version throws errors that this class is not thread
    safe.
    Since this is a builder class, we don't expect multiple threads to ever
    use it so marking it as "NotThreadSafe" is sufficent.
---
 .../main/java/org/apache/accumulo/core/util/threads/ThreadPools.java   | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/core/src/main/java/org/apache/accumulo/core/util/threads/ThreadPools.java 
b/core/src/main/java/org/apache/accumulo/core/util/threads/ThreadPools.java
index 98da4842f4..135f3f94ae 100644
--- a/core/src/main/java/org/apache/accumulo/core/util/threads/ThreadPools.java
+++ b/core/src/main/java/org/apache/accumulo/core/util/threads/ThreadPools.java
@@ -62,6 +62,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.IntSupplier;
 
+import javax.annotation.concurrent.NotThreadSafe;
+
 import org.apache.accumulo.core.conf.AccumuloConfiguration;
 import org.apache.accumulo.core.conf.Property;
 import org.apache.accumulo.core.trace.TraceUtil;
@@ -436,6 +438,7 @@ public class ThreadPools {
     }
   }
 
+  @NotThreadSafe
   public class ThreadPoolExecutorBuilder {
     final String name;
     int coreThreads = 0;

Reply via email to