The primary enhancement here is a more fleshed-out discussion about value objects, and particularly their interaction with `==`, in the `java.lang.Object` javadoc.
Then I've done some cleanup of links, directing discussion about "value objects" to `Object##value-objects`, "indistinguishable" to `Object##comparing-objects`. In some situations, it's more appropriate to link "has identity" to `Objects##hasIdentity` and "value class" to `Class#isValue`, but I've reduced reliance on those. --------- - [X] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Uniform handling of `requireIdentity` - 8389875: java.lang javadoc should summarize object distinguishability Changes: https://git.openjdk.org/jdk/pull/34140/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=34140&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8389875 Stats: 92 lines in 11 files changed: 59 ins; 5 del; 28 mod Patch: https://git.openjdk.org/jdk/pull/34140.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/34140/head:pull/34140 PR: https://git.openjdk.org/jdk/pull/34140
