mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 12:23:59 +08:00
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:
parent
396090773c
commit
e863ccf328
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2005-02-18 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR java/20056:
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user