[COLLECTIONS-255] re-address unused cache variable in TreeBidiMap

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@894500 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Matthew Jason Benson 2009-12-29 22:35:45 +00:00
parent aa0e7d0a92
commit 4016c8eec9
1 changed files with 2 additions and 2 deletions

View File

@ -411,7 +411,7 @@ public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>> imple
*/
public Set<Map.Entry<K, V>> entrySet() {
if (entrySet == null) {
return new EntryView();
entrySet = new EntryView();
}
return entrySet;
}
@ -2092,7 +2092,7 @@ public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>> imple
public Set<Map.Entry<V, K>> entrySet() {
if (entrySet == null) {
return new InverseEntryView();
entrySet = new InverseEntryView();
}
return entrySet;
}