Removing the unused variable as mentioned in COLLECTIONS-255 by caching the TreeView object

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@575154 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2007-09-13 03:45:29 +00:00
parent 8357f61e3d
commit 3d70b9cc19
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
@ -2042,7 +2042,7 @@ public class TreeBidiMap implements OrderedBidiMap {
public Set entrySet() {
if (entrySet == null) {
return new EntryView(main, VALUE, INVERSEMAPENTRY);
entrySet= new EntryView(main, VALUE, INVERSEMAPENTRY);
}
return entrySet;
}