You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2026/07/29 13:36:16 UTC
(commons-collections) branch master updated (88d8b2f61 -> 688bcd32a)
This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
from 88d8b2f61 Reject remove on the Unmodifiable map from SplitMapUtils.readableMap (#718)
new 181eca75d Reject remove on the Unmodifiable map from SplitMapUtils.readableMap (#718)
new 688bcd32a Use method references.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/changes/changes.xml | 1 +
.../java/org/apache/commons/collections4/SplitMapUtilsTest.java | 9 +++------
2 files changed, 4 insertions(+), 6 deletions(-)
(commons-collections) 02/02: Use method references.
Posted by gg...@apache.org.
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 <ga...@gmail.com>
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));
}
(commons-collections) 01/02: Reject remove on the Unmodifiable map from SplitMapUtils.readableMap (#718)
Posted by gg...@apache.org.
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 181eca75d6681f095e2995b5b494769d423b6b62
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jul 29 09:33:33 2026 -0400
Reject remove on the Unmodifiable map from SplitMapUtils.readableMap
(#718)
---
src/changes/changes.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 992147066..09b4e75a3 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -85,6 +85,7 @@
<action type="fix" dev="ggregory" due-to="Naveed Khan, Gary Gregory">Do not register a value collection until an add succeeds (#717).</action>
<action type="fix" dev="ggregory" due-to="Naveed Khan, Gary Gregory">Increment modCount after the bounds check in TreeList add and remove (#716).</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Add messages when throwing NullPointerException.</action>
+ <action type="fix" dev="ggregory" due-to="Naveed Khan, Gary Gregory">Reject remove on the Unmodifiable map from SplitMapUtils.readableMap (#718)</action>
<!-- ADD -->
<action type="add" dev="ggregory" due-to="Gary Gregory">Add generics to UnmodifiableIterator for the wrapped type.</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">Add a Maven benchmark profile for JMH.</action>