From 3d70b9cc190765f3c8edc85d47cb44f50d668c30 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Thu, 13 Sep 2007 03:45:29 +0000 Subject: [PATCH] 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 --- .../org/apache/commons/collections/bidimap/TreeBidiMap.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java b/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java index 0a630af7d..ad08d6b7f 100644 --- a/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java +++ b/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java @@ -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; }