diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 2b70a8bc2..f9037565f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -311,7 +311,7 @@ Added method "CollatingIterator#getIteratorIndex()". - + Fixed javadoc for "ListUtils#transformedList(List)" to clarify that existing objects in the list are not transformed. @@ -345,6 +345,10 @@ Fixed javadoc for methods "firstKey()" and "lastKey()" in class "AbstractLinkedMap". + + "Flat3Map#remove(Object)" will now return the correct value mapped to the removed key + if the size of the map is less or equal 3. + Added constructor "TransformingComparator(Transformer)". @@ -380,6 +384,9 @@ Added method "ListUtils#indexOf(List, Predicate)". + + Fixed several unit tests which were using parameters to "assertEquals(...)" in wrong order. + Return concrete class in static factory methods instead of base class interface (except for Unmodifiable decorators). @@ -411,6 +418,13 @@ The "CollectionUtils#select(Collection, Predicate, Collection)" method will now return the output collection. + + Calling "setValue(Object)" on any Entry returned by a "Flat3Map" will now + correctly set the value for the current entry. + + + "MultiKey#toString()" will now use "Arrays#toString(List)". + Added support for resettable iterators in "IteratorIterable". diff --git a/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java b/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java index 37bd86c5a..de2ccb620 100644 --- a/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java +++ b/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java @@ -250,7 +250,7 @@ public class MultiKey implements Serializable { */ @Override public String toString() { - return "MultiKey" + Arrays.asList(keys).toString(); + return "MultiKey" + Arrays.toString(keys); } /**