[foreign-memaccess+abi] RFR: 8291286: Improve JavaDocs for static constructors in MemorySession

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Aug 4 14:16:30 UTC 2022


On Thu, 28 Jul 2022 07:30:28 GMT, Per-Åke Minborg <duke at openjdk.org> wrote:

> This PR adds information to the static constructor methods in MemorySession to improve clarity for new users.
> 
> This is my first PR for a JDK project so I am eager to receive feedback and improvement suggestions from the community.

Marked as reviewed by mcimadamore (Committer).

src/java.base/share/classes/java/lang/foreign/MemorySession.java line 308:

> 306:      * Returns the global memory session.
> 307:      *
> 308:      * @return the global memory session

Use {@return} tag please, to avoid duplication

-------------

PR: https://git.openjdk.org/panama-foreign/pull/693


More information about the panama-dev mailing list