HCOLL-260 fixed a bug with remove() method overloading

This commit is contained in:
leventov
2014-12-22 03:59:27 +07:00
parent a4803321de
commit a65d6e8c0e
2 changed files with 7 additions and 6 deletions
@@ -1193,7 +1193,8 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
*/
@Override
@SuppressWarnings("unchecked")
public final boolean remove(@net.openhft.lang.model.constraints.NotNull final Object key, final Object value) {
public final boolean remove(@net.openhft.lang.model.constraints.NotNull final Object key,
final Object value) {
if (value == null)
return false; // CHM compatibility; I would throw NPE
return (Boolean) removeIfValueIs(key, (V) value);