LinkedHashMap (addEntry): Call remove() with key argument, not the HashEntry.

2005-02-18  Bryce McKinlay  <mckinlay@redhat.com>

	* java/util/LinkedHashMap (addEntry): Call remove() with key argument,
	not the HashEntry. Reported by Jean-Marie White.

From-SVN: r95263
This commit is contained in:
Bryce McKinlay 2005-02-19 03:18:20 +00:00 committed by Bryce McKinlay
parent 396090773c
commit e863ccf328
2 changed files with 6 additions and 1 deletions

View file

@ -412,7 +412,7 @@ public class LinkedHashMap extends HashMap
e.next = buckets[idx];
buckets[idx] = e;
if (callRemove && removeEldestEntry(root))
remove(root);
remove(root.key);
}
/**