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-numbers.git
commit 303a312b9026bb39d5c3d5f34d18d49147f1d42d Author: Alex Herbert <aherb...@apache.org> AuthorDate: Tue Mar 25 14:56:04 2025 +0000 Sonar fix: use method reference --- .../src/test/java/org/apache/commons/numbers/core/DDTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/DDTest.java b/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/DDTest.java index ff4b3e3d..f4496d76 100644 --- a/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/DDTest.java +++ b/commons-numbers-core/src/test/java/org/apache/commons/numbers/core/DDTest.java @@ -315,7 +315,7 @@ class DDTest { // if the sum of the parts overflows (isFinite is conditioned on the evaluated sum) } else { // Cannot create a BigDecimal if not finite - Assertions.assertThrows(NumberFormatException.class, () -> dd.bigDecimalValue()); + Assertions.assertThrows(NumberFormatException.class, dd::bigDecimalValue); Assertions.assertFalse(dd.isFinite(), "This should be non-finite"); } }