RFR: 8300011: Refactor code examples to use @snippet in java.util.TimeZone [v2]
Justin Lu
duke at openjdk.org
Thu Jan 12 21:30:03 UTC 2023
On Thu, 12 Jan 2023 21:08:12 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> 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 313:
>
>> 311: * <p>This method is equivalent to:
>> 312: * {@snippet lang=java :
>> 313: * getDisplayName(false, LONG, // @link substring="LONG" target="#LONG"
>
> You could move those `@link` directives above the code and concatenate them with ":", e.g,
>
> * // @link substring="LONG" target="#LONG" :
> * getDisplayName(false, LONG,
>
> so that the line won't be very long.
Did not realize that could be done, made the fix, thank you
-------------
PR: https://git.openjdk.org/jdk/pull/11955
More information about the core-libs-dev
mailing list