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:
parent
bf9c5b292e
commit
5a589042b9
|
@ -340,6 +340,7 @@ public class OpenIntToDoubleHashMap implements Serializable {
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the value associated with a key.
|
* Remove the value associated with a key.
|
||||||
* @param key key to which the value is associated
|
* @param key key to which the value is associated
|
||||||
|
@ -418,9 +419,8 @@ public class OpenIntToDoubleHashMap implements Serializable {
|
||||||
if (shouldGrowTable()) {
|
if (shouldGrowTable()) {
|
||||||
growTable();
|
growTable();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
++count;
|
++count;
|
||||||
|
}
|
||||||
return previous;
|
return previous;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue