RFR: 8307409: Refactor usage examples to use @snippet in the java.nio packages [v2]
Brian Burkhalter
bpb at openjdk.org
Tue May 9 01:18:16 UTC 2023
On Mon, 8 May 2023 20:55:29 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8307409: Remove incorrect @link in @snippet
>
> src/java.base/share/classes/java/nio/file/Path.java line 849:
>
>> 847: * invocation
>> 848: * {@snippet lang=java :
>> 849: * watchable.{@link #register(WatchService,WatchEvent.Kind[],WatchEvent.Modifier[]) register}(watcher, events, new WatchEvent.Modifier[0]);
>
> Take out the {@link, it isn't needed and gets included literally. (And make the line very long).
Thanks. I fixed another place where a `@link` was included literally but missed this one. Fixed in [11ad946](https://github.com/openjdk/jdk/pull/13870/commits/11ad9465a3e7bc983c59eea96e7fd460b595a8bf).
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13870#discussion_r1188023800
More information about the nio-dev
mailing list