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

Darragh Clarke duke at openjdk.org
Wed Feb 22 16:02:16 UTC 2023


> Refactored instances of `@code` to instead use `@snippet`.
> 
> I also spent some time looking into using external snippets to reference the existing files `JavadocExamples` and `WebSocketExample` though ultimately thought it was better to keep the docs pretty much as they had been with only a few small changes to formatting.

Darragh Clarke has updated the pull request incrementally with one additional commit since the last revision:

  cleaned up formatting, fixed snippets breaking when code sample starts on same line

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/12692/files
  - new: https://git.openjdk.org/jdk/pull/12692/files/0d64cdc2..ae8e2d44

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=12692&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12692&range=00-01

  Stats: 13 lines in 3 files changed: 6 ins; 0 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/12692.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12692/head:pull/12692

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


More information about the net-dev mailing list