From 9876243087c38d583924cab592a705967860f67b Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Sat, 7 Nov 2015 20:31:09 +0000 Subject: [PATCH] Backport COLLECTIONS-335 to 3.2.2. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/branches/COLLECTIONS_3_2_X@1713173 13f79535-47bb-0310-9956-ffa450edef68 --- src/changes/changes.xml | 6 +++--- .../org/apache/commons/collections/bidimap/TreeBidiMap.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }