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

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

commit 688bcd32acd9ea55cf802f9c86fba492f5c2344c
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jul 29 09:33:52 2026 -0400

    Use method references.
---
 .../java/org/apache/commons/collections4/SplitMapUtilsTest.java  | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java 
b/src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java
index a7226fc5b..cf992a37e 100644
--- a/src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/SplitMapUtilsTest.java
@@ -44,20 +44,17 @@ class SplitMapUtilsTest {
     private final Transformer<String, Integer> stringToInt = Integer::valueOf;
 
     private void attemptGetOperation(final Runnable r) {
-        assertThrows(UnsupportedOperationException.class, () -> r.run(),
-                "Put exposed as writable Map must not allow Get operations");
+        assertThrows(UnsupportedOperationException.class, r::run, "Put exposed 
as writable Map must not allow Get operations");
     }
 
     private void attemptPutOperation(final Runnable r) {
-        assertThrows(UnsupportedOperationException.class, () -> r.run(),
-                "Get exposed as writable Map must not allow Put operations");
+        assertThrows(UnsupportedOperationException.class, r::run, "Get exposed 
as writable Map must not allow Put operations");
     }
 
     @BeforeEach
     public void setUp() throws Exception {
         backingMap = new HashMap<>();
-        transformedMap = TransformedSplitMap.transformingMap(backingMap, 
NOPTransformer.<String>nopTransformer(),
-                stringToInt);
+        transformedMap = TransformedSplitMap.transformingMap(backingMap, 
NOPTransformer.<String>nopTransformer(), stringToInt);
         for (int i = 0; i < 10; i++) {
             transformedMap.put(String.valueOf(i), String.valueOf(i));
         }

Reply via email to