Fixed to use `Objects.requireNonNull()` instead of `Objects.nonNull()`. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
------------- Commit messages: - tests - require non null Changes: https://git.openjdk.org/jfx/pull/2331/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2331&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8393151 Stats: 49 lines in 8 files changed: 33 ins; 2 del; 14 mod Patch: https://git.openjdk.org/jfx/pull/2331.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/2331/head:pull/2331 PR: https://git.openjdk.org/jfx/pull/2331
