diff --git a/src/changes/changes.xml b/src/changes/changes.xml index f278a9d63..69031daaa 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -23,6 +23,9 @@ + + Fixed cache assignment for "TreeBidiMap#entrySet". + "SetUniqueList.addAll(int, Collection)" now correctly add the collection at the provided index. @@ -51,9 +54,6 @@ Removed debug output in "MapUtils#getNumber(Map)". - - Fixed cache assignment for "TreeBidiMap#entrySet". - Synchronized access to lock in "StaticBucketMap#size()". diff --git a/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java b/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java index 0a630af7d..ee42540f2 100644 --- a/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java +++ b/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java @@ -392,7 +392,7 @@ public class TreeBidiMap implements OrderedBidiMap { */ public Set entrySet() { if (entrySet == null) { - return new EntryView(this, KEY, MAPENTRY); + entrySet = new EntryView(this, KEY, MAPENTRY); } return entrySet; }