RFR: 8300792: Refactor examples in java.net.http to use @snippet

Daniel Fuchs dfuchs at openjdk.org
Tue Feb 21 16:46:44 UTC 2023


On Tue, 21 Feb 2023 16:33:34 GMT, Darragh Clarke <duke at openjdk.org> wrote:

> I wouldn't mind changing it to specify, though I do think if no value is set it defaults to java, at least from reading the JEP thats what I thought

Good point. From [JEP 413](https://openjdk.org/jeps/413):

> Code fragments are typically Java source code, but they may also be fragments of properties files, source code in other languages, or plain text. A snippet may specify a lang attribute, which identifies the kind of content in the snippet. For an inline snippet, the default value is java.

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

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


More information about the net-dev mailing list