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

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

commit 48f46c6dd3e301e7894297aef0ea401125328009
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Tue Mar 25 12:55:36 2025 +0000

    Sonar fix: Remove useless assignment in test
---
 .../commons/statistics/inference/WilcoxonSignedRankTestTest.java       | 3 ---
 1 file changed, 3 deletions(-)

diff --git 
a/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/WilcoxonSignedRankTestTest.java
 
b/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/WilcoxonSignedRankTestTest.java
index ed4bc3b..48f318a 100644
--- 
a/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/WilcoxonSignedRankTestTest.java
+++ 
b/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/WilcoxonSignedRankTestTest.java
@@ -195,9 +195,6 @@ class WilcoxonSignedRankTestTest {
                                 double mu, PValueMethod method, boolean 
correct, double eps) {
         WilcoxonSignedRankTest test = 
WilcoxonSignedRankTest.withDefaults().withMu(mu).with(method)
             .with(correct ? ContinuityCorrection.ENABLED : 
ContinuityCorrection.DISABLED);
-        final double s = mu == 0 ?
-            WilcoxonSignedRankTest.withDefaults().statistic(x, y) :
-            test.statistic(x, y);
         final boolean hasTies = hasTies(x, y);
         final int zeros = countZeros(x, y);
         // Note: Assertions are within a try-catch block to allow printing the 
R command

Reply via email to