commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r575154 - /commons/proper/collections/trunk/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java
Date Thu, 13 Sep 2007 03:45:31 GMT
Author: bayard
Date: Wed Sep 12 20:45:29 2007
New Revision: 575154

URL: http://svn.apache.org/viewvc?rev=575154&view=rev
Log:
Removing the unused variable as mentioned in COLLECTIONS-255 by caching the TreeView object

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=575154&r1=575153&r2=575154&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
Wed Sep 12 20:45:29 2007
@@ -392,7 +392,7 @@
      */
     public Set entrySet() {
         if (entrySet == null) {
-            return new EntryView(this, KEY, MAPENTRY);
+            entrySet = new EntryView(this, KEY, MAPENTRY);
         }
         return entrySet;
     }
@@ -2042,7 +2042,7 @@
 
         public Set entrySet() {
             if (entrySet == null) {
-                return new EntryView(main, VALUE, INVERSEMAPENTRY);
+                entrySet= new EntryView(main, VALUE, INVERSEMAPENTRY);
             }
             return entrySet;
         }



Mime
View raw message