This change cleans up some calls to overloads of `getStartPosition` and `getEndPosition` that were deprecated for removal in [JDK-8380147](https://bugs.openjdk.org/browse/JDK-8380147).
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - 8383920: Clean up calls to deprecated getStartPosition and getEndPosition methods Changes: https://git.openjdk.org/jdk/pull/31058/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31058&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8383920 Stats: 20 lines in 8 files changed: 0 ins; 5 del; 15 mod Patch: https://git.openjdk.org/jdk/pull/31058.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31058/head:pull/31058 PR: https://git.openjdk.org/jdk/pull/31058
