RFR: 8307409: Refactor usage examples to use @snippet in the java.nio packages [v6]

Brian Burkhalter bpb at openjdk.org
Thu May 11 18:01:51 UTC 2023


On Thu, 11 May 2023 15:05:46 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: Update after scanning java.nio source tree
>
> src/java.base/share/classes/java/nio/X-Buffer.java.template line 1062:
> 
>> 1060:      * {@snippet lang=java :
>> 1061:      * for (int i = offset, j = index; i < offset + length; i++, j++)
>> 1062:      *     dst.put(j, src.get(i));
> 
> Indent to be consistent with the rest of the file.

Fixed in [1bb1125](https://github.com/openjdk/jdk/pull/13870/commits/1bb11251ca8b22a94aa7554af3cdee7284d51cff) along with some other indentations. All should now be four spaces.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13870#discussion_r1191518429


More information about the nio-dev mailing list