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


The following commit(s) were added to refs/heads/master by this push:
     new d978ffa5 Sonar fix: use method reference
d978ffa5 is described below

commit d978ffa5dab5815386cceab979477d2d95241b75
Author: Alex Herbert <aherb...@apache.org>
AuthorDate: Wed Mar 26 13:19:08 2025 +0000

    Sonar fix: use method reference
---
 .../java/org/apache/commons/numbers/arrays/UpdatingIntervalTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/commons-numbers-arrays/src/test/java/org/apache/commons/numbers/arrays/UpdatingIntervalTest.java
 
b/commons-numbers-arrays/src/test/java/org/apache/commons/numbers/arrays/UpdatingIntervalTest.java
index 4329c7a7..6b76fa2a 100644
--- 
a/commons-numbers-arrays/src/test/java/org/apache/commons/numbers/arrays/UpdatingIntervalTest.java
+++ 
b/commons-numbers-arrays/src/test/java/org/apache/commons/numbers/arrays/UpdatingIntervalTest.java
@@ -99,7 +99,7 @@ class UpdatingIntervalTest {
     @ParameterizedTest
     @MethodSource(value = {"testIndices"})
     void testUpdateIndexSupport(int[] indices, int[] k) {
-        assertUpdate((x, n) -> IndexSupport.createUpdatingInterval(x, n), 
indices, k);
+        assertUpdate(IndexSupport::createUpdatingInterval, indices, k);
     }
 
     @ParameterizedTest
@@ -119,7 +119,7 @@ class UpdatingIntervalTest {
     @ParameterizedTest
     @MethodSource(value = {"testIndices"})
     void testSplitIndexSupport(int[] indices, int[] k) {
-        assertSplit((x, n) -> IndexSupport.createUpdatingInterval(x, n), 
indices, k);
+        assertSplit(IndexSupport::createUpdatingInterval, indices, k);
     }
 
     /**

Reply via email to