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 42e8eb14ff39793be6edbd78598d689f17dabdac Author: Alex Herbert <aherb...@apache.org> AuthorDate: Tue Mar 25 12:51:28 2025 +0000 Sonar fix: Use all arguments to String format --- .../test/java/org/apache/commons/statistics/inference/TestUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/TestUtils.java b/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/TestUtils.java index a848be0..fe0b551 100644 --- a/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/TestUtils.java +++ b/commons-statistics-inference/src/test/java/org/apache/commons/statistics/inference/TestUtils.java @@ -106,7 +106,7 @@ final class TestUtils { for (final double alpha : INVALID_ALPHA) { final IllegalArgumentException ex = Assertions.assertThrows(IllegalArgumentException.class, () -> fun.accept(alpha), - () -> String.format("Alpha %s", prefix(msg), alpha)); + () -> String.format("%sAlpha %s", prefix(msg), alpha)); final String m = ex.getMessage().toLowerCase(Locale.ROOT); Assertions.assertTrue(m.contains("significance"), () -> "Exception message <" + ex.getMessage() + "> missing value 'significance'");