PR: COLLECTIONS-335
Setting TreeBidiMap.entrySet now, as is the case in the trunk.


git-svn-id: 
https://svn.apache.org/repos/asf/commons/proper/collections/branches/COLLECTIONS_3_2_BRANCH@1076036
 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/commons-collections/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/commons-collections/commit/bcc68d48
Tree: http://git-wip-us.apache.org/repos/asf/commons-collections/tree/bcc68d48
Diff: http://git-wip-us.apache.org/repos/asf/commons-collections/diff/bcc68d48

Branch: refs/heads/COLLECTIONS_3_2_BRANCH
Commit: bcc68d48bb2990d44adffd9ba9e29f155b214d13
Parents: f4a6f21
Author: Jochen Wiedmann <joc...@apache.org>
Authored: Tue Mar 1 22:27:53 2011 +0000
Committer: Jochen Wiedmann <joc...@apache.org>
Committed: Tue Mar 1 22:27:53 2011 +0000

----------------------------------------------------------------------
 src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-collections/blob/bcc68d48/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java 
b/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java
index 0a630af..349e397 100644
--- a/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java
+++ b/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java
@@ -392,7 +392,8 @@ 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;
         }
         return entrySet;
     }

Reply via email to