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

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git


The following commit(s) were added to refs/heads/master by this push:
     new 3c451ef8 Document protection for mutable static field
3c451ef8 is described below

commit 3c451ef8ec2d2fb319de10abfc0b9c998e1bfdb7
Author: Sebb <[email protected]>
AuthorDate: Sun Dec 28 23:28:03 2025 +0000

    Document protection for mutable static field
---
 .../java/org/apache/commons/statistics/inference/MannWhitneyUTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/commons-statistics-inference/src/main/java/org/apache/commons/statistics/inference/MannWhitneyUTest.java
 
b/commons-statistics-inference/src/main/java/org/apache/commons/statistics/inference/MannWhitneyUTest.java
index 07517950..35b3f2fe 100644
--- 
a/commons-statistics-inference/src/main/java/org/apache/commons/statistics/inference/MannWhitneyUTest.java
+++ 
b/commons-statistics-inference/src/main/java/org/apache/commons/statistics/inference/MannWhitneyUTest.java
@@ -50,7 +50,7 @@ public final class MannWhitneyUTest {
      * The value should only be accessed, checked for size and optionally
      * modified when holding the lock. When the storage is determined to be 
the correct
      * size it can be returned for read/write to the array when not holding 
the lock. */
-    private static SoftReference<double[][][]> cacheF = new 
SoftReference<>(null);
+    private static SoftReference<double[][][]> cacheF = new 
SoftReference<>(null); //NOPMD @GuardedBy("LOCK")
     /** Default instance. */
     private static final MannWhitneyUTest DEFAULT = new MannWhitneyUTest(
         AlternativeHypothesis.TWO_SIDED, PValueMethod.AUTO, true, 0);

Reply via email to