The Objects.requireIdentity NPEs do not have specified message for all three overloads. Therefore it is not the equivalent for the rNN calls when preview features are disabled.
Maybe we can later make the String version reuse the static message for the NPE, and convert the Supplier version to a function version. But that's a separate effort. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Fix null check specification for Objects.requireIdentity Changes: https://git.openjdk.org/jdk/pull/33477/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33477&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8392615 Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/33477.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33477/head:pull/33477 PR: https://git.openjdk.org/jdk/pull/33477
