5071718: (bf) Add ByteBuffer.slice(int offset, int length)

Alan Bateman Alan.Bateman at oracle.com
Tue Feb 26 17:32:15 UTC 2019



On 26/02/2019 15:55, Brian Burkhalter wrote:
>
>> On Feb 26, 2019, at 12:43 AM, Alan Bateman <Alan.Bateman at oracle.com 
>> <mailto:Alan.Bateman at oracle.com>> wrote:
>>
>> On 26/02/2019 01:48, Brian Burkhalter wrote:
>>> Hi Brent,
>>>
>>> That does read better.
>> It's consistent with the existing slice method so I think it's good too.
>
> Webrev [1] and CSR [2] updated accordingly.
>
One small suggestion for the class description is to merge the two 
paragraphs on the slice methods into one to avoid the duplicate wording, 
it might be as simpler as "The slice() and slice(int,int) methods create 
a subsequence of a buffer; They leave the limit and position unchanged".

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190226/e5524e17/attachment-0001.html>


More information about the nio-dev mailing list