RFR: JDK-8289775: Update java.lang.invoke.MethodHandle[s] to use snippets

liach duke at openjdk.org
Wed Jul 6 00:13:42 UTC 2022


On Tue, 5 Jul 2022 22:22:46 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> Update existing examples in  java.lang.invoke.{MethodHandle, MethodHandles} to use snippets rather than the older markup idiom.

In addition, I believe we can add link in many examples, but I am not sure if this is part of this issue or if it will be addressed separately.

src/java.base/share/classes/java/lang/invoke/MethodHandle.java line 272:

> 270:  * Here are some examples of usage:
> 271:  * {@snippet lang="java" :
> 272: Object x, y; String s; int i;

These lines can now be properly indented, and they should be.

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

PR: https://git.openjdk.org/jdk/pull/9385


More information about the core-libs-dev mailing list