Integrated: 8178355: IdentityHashMap uses identity-based comparison for values everywhere except remove(K,V) and replace(K,V,V)
liach
duke at openjdk.org
Thu Nov 3 16:40:17 UTC 2022
On Fri, 15 Apr 2022 05:58:32 GMT, liach <duke at openjdk.org> wrote:
> Explicitly implement `remove` and `replace` in `IdentityHashMap` to compare values by identity. Updated API documentation of these two methods ([Preview](https://cr.openjdk.java.net/~liach/8178355/IdentityHashMap.html#remove(java.lang.Object,java.lang.Object))) to mention such behavior.
This pull request has now been integrated.
Changeset: 53905e60
Author: Stuart Marks <stuart.marks at oracle.com>
Committer: Stuart Marks <smarks at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/53905e600a0f0f008440da52b4d2b87cc9c5c8dc
Stats: 166 lines in 2 files changed: 153 ins; 2 del; 11 mod
8178355: IdentityHashMap uses identity-based comparison for values everywhere except remove(K,V) and replace(K,V,V)
Reviewed-by: smarks
-------------
PR: https://git.openjdk.org/jdk/pull/8259
More information about the core-libs-dev
mailing list