From 4016c8eec992ab62747a55dcfb4be1878ecc232c Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Tue, 29 Dec 2009 22:35:45 +0000 Subject: [PATCH] [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 --- .../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 b1192fd98..390d1a7c3 100644 --- a/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java +++ b/src/java/org/apache/commons/collections/bidimap/TreeBidiMap.java @@ -411,7 +411,7 @@ public class TreeBidiMap, V extends Comparable> imple */ public Set> entrySet() { if (entrySet == null) { - return new EntryView(); + entrySet = new EntryView(); } return entrySet; } @@ -2092,7 +2092,7 @@ public class TreeBidiMap, V extends Comparable> imple public Set> entrySet() { if (entrySet == null) { - return new InverseEntryView(); + entrySet = new InverseEntryView(); } return entrySet; }