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:
parent
8357f61e3d
commit
3d70b9cc19
|
@ -392,7 +392,7 @@ public class TreeBidiMap implements OrderedBidiMap {
|
||||||
*/
|
*/
|
||||||
public Set entrySet() {
|
public Set entrySet() {
|
||||||
if (entrySet == null) {
|
if (entrySet == null) {
|
||||||
return new EntryView(this, KEY, MAPENTRY);
|
entrySet = new EntryView(this, KEY, MAPENTRY);
|
||||||
}
|
}
|
||||||
return entrySet;
|
return entrySet;
|
||||||
}
|
}
|
||||||
|
@ -2042,7 +2042,7 @@ public class TreeBidiMap implements OrderedBidiMap {
|
||||||
|
|
||||||
public Set entrySet() {
|
public Set entrySet() {
|
||||||
if (entrySet == null) {
|
if (entrySet == null) {
|
||||||
return new EntryView(main, VALUE, INVERSEMAPENTRY);
|
entrySet= new EntryView(main, VALUE, INVERSEMAPENTRY);
|
||||||
}
|
}
|
||||||
return entrySet;
|
return entrySet;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue