This patch fixes some inconsistencies in the javadoc for restricted methods:
* ModuleLayer.Controller::addEnableNativeAccess has a shorted text in its `@throws` clause. This shorted text is now used everywhere. * One overload of `MemorySegment::ofAddress` is missing the restricted method narrative text ------------- Commit messages: - Fix javadoc for restricted methods Changes: https://git.openjdk.org/jdk20/pull/40/files Webrev: https://webrevs.openjdk.org/?repo=jdk20&pr=40&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8298797 Stats: 33 lines in 6 files changed: 10 ins; 14 del; 9 mod Patch: https://git.openjdk.org/jdk20/pull/40.diff Fetch: git fetch https://git.openjdk.org/jdk20 pull/40/head:pull/40 PR: https://git.openjdk.org/jdk20/pull/40