RFR: 8300011: Refactor code examples to use @snippet in java.util.TimeZone [v2]
Justin Lu
duke at openjdk.org
Thu Jan 12 21:50:27 UTC 2023
On Thu, 12 Jan 2023 21:30:00 GMT, Justin Lu <duke at openjdk.org> wrote:
>> This PR implements JEP 413: Code Snippets in Java API Documentation for _[java.util.TimeZone](https://docs.oracle.com/en/java/javase/19/docs/api/java.base/java/util/TimeZone.html)_.
>>
>> Code examples using <pre> ... </pre> blocks are replaced with the @ snippet syntax where applicable.
>
> Justin Lu has updated the pull request incrementally with one additional commit since the last revision:
>
> Move link to separate lines
src/java.base/share/classes/java/util/TimeZone.java line 66:
> 64: * U.S. Pacific Time zone is "America/Los_Angeles". So, you can get a
> 65: * U.S. Pacific Time {@code TimeZone} object with:
> 66: * <blockquote><pre>
@naotoj <blockquote> actually adds indentation for the contents contained within. So I will be reverting the removal of those tags to prevent visual change.
-------------
PR: https://git.openjdk.org/jdk/pull/11955
More information about the core-libs-dev
mailing list