mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-260 fixed a bug with remove() method overloading
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user