commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r894500 - /commons/proper/collections/trunk/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java
Date Tue, 29 Dec 2009 22:35:45 GMT
Author: mbenson
Date: Tue Dec 29 22:35:45 2009
New Revision: 894500

URL: http://svn.apache.org/viewvc?rev=894500&view=rev
Log:
[COLLECTIONS-255] re-address unused cache variable in TreeBidiMap

Modified:
    commons/proper/collections/trunk/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java

Modified: commons/proper/collections/trunk/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java?rev=894500&r1=894499&r2=894500&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java
(original)
+++ commons/proper/collections/trunk/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java
Tue Dec 29 22:35:45 2009
@@ -411,7 +411,7 @@
      */
     public Set<Map.Entry<K, V>> entrySet() {
         if (entrySet == null) {
-            return new EntryView();
+            entrySet = new EntryView();
         }
         return entrySet;
     }
@@ -2092,7 +2092,7 @@
 
         public Set<Map.Entry<V, K>> entrySet() {
             if (entrySet == null) {
-                return new InverseEntryView();
+                entrySet = new InverseEntryView();
             }
             return entrySet;
         }



Mime
View raw message