From 696c7687162c70ba9de930af0327639b03680995 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Sat, 27 Apr 2013 21:48:13 +0000 Subject: [PATCH] Added more issues which were marked with fix version 4.0-beta1, applied one pending fix for using Arrays.toString. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1476681 13f79535-47bb-0310-9956-ffa450edef68 --- src/changes/changes.xml | 16 +++++++++++++++- .../commons/collections4/keyvalue/MultiKey.java | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) 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); } /**