mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
7174736: JCK test api/java_util/HashMap/index_EntrySet failing
Corrects a problem with HashMap.removeEntry() that caused a JCK test to fail Reviewed-by: mduigou
This commit is contained in:
parent
519dc0c3f9
commit
f3159c31b0
1 changed files with 1 additions and 1 deletions
|
@ -611,7 +611,7 @@ public class HashMap<K,V>
|
|||
|
||||
Map.Entry<?,?> entry = (Map.Entry<?,?>) o;
|
||||
Object key = entry.getKey();
|
||||
int hash = (key == null) ? 0 : hash(key.hashCode());
|
||||
int hash = (key == null) ? 0 : hash(key);
|
||||
int i = indexFor(hash, table.length);
|
||||
@SuppressWarnings("unchecked")
|
||||
Entry<K,V> prev = (Entry<K,V>)table[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue