[lworld] RFR: 8336029: [lworld] Rename Objects.isIdentity() to hasIdentity()
Roger Riggs
rriggs at openjdk.org
Tue Jul 9 21:04:40 UTC 2024
Rename Objects.isIdentity() to hasIdentity()
Remove java.util.Objects.isValueObject and replace its use with !hasIdentity().
Align the WeakHashMap WeakValuePolicy default with that of java.lang.Reference.
Namely, throw IdentityException unless the WeakHashMap is created with a different policy.
WeakHashMapPolicy is a unsupported experimental API.
-------------
Commit messages:
- 8336029: [lworld] Rename Objects.isIdentity() to hasIdentity()
Changes: https://git.openjdk.org/valhalla/pull/1163/files
Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1163&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8336029
Stats: 39 lines in 7 files changed: 0 ins; 17 del; 22 mod
Patch: https://git.openjdk.org/valhalla/pull/1163.diff
Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1163/head:pull/1163
PR: https://git.openjdk.org/valhalla/pull/1163
More information about the valhalla-dev
mailing list