RFR: 8319166: Typos in the JavaDocs for MemorySegment
Maurizio Cimadamore
mcimadamore at openjdk.org
Thu Nov 2 11:30:05 UTC 2023
On Thu, 2 Nov 2023 07:40:52 GMT, Per Minborg <pminborg at openjdk.org> wrote:
> This PR proposes to fix a number of JavaDoc typos in the `MemorySegment::getAtIndex` and `::setAtIndex`.
src/java.base/share/classes/java/lang/foreign/MemorySegment.java line 1997:
> 1995: * @throws IndexOutOfBoundsException if {@code index * layout.byteSize() > byteSize() - layout.byteSize()}.
> 1996: */
> 1997: MemorySegment getAtIndex(AddressLayout layout, long index);
I think the fix for `setAtIndex(AddressLayout)` is missing?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16469#discussion_r1379958626
More information about the core-libs-dev
mailing list