Correct bug that prevents replacing an element while using an iterator

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@738370 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
William Barker 2009-01-28 05:20:31 +00:00
parent bf9c5b292e
commit 5a589042b9
1 changed files with 2 additions and 2 deletions

View File

@ -340,6 +340,7 @@ public class OpenIntToDoubleHashMap implements Serializable {
return size;
}
/**
* Remove the value associated with a key.
* @param key key to which the value is associated
@ -418,9 +419,8 @@ public class OpenIntToDoubleHashMap implements Serializable {
if (shouldGrowTable()) {
growTable();
}
}
++count;
}
return previous;
}