6516099: InputStream.skipFully(int k) to skip exactly k bytes

Brian Burkhalter brian.burkhalter at oracle.com
Fri Nov 2 16:29:42 UTC 2018


Hi Roger,

> On Nov 2, 2018, at 8:03 AM, Roger Riggs <Roger.Riggs at oracle.com> wrote:
> 
> The description of this implementation ("the default implementation...")
> can be put in an @implSpec tag, since it specifies the behavior of this
> method, and is not normative for all subclasses.  That will make the 'normal'
> behavior of the method easier to understand.

Will change.

> As Daniel points out, the code should probably be a bit careful about
> the return value from skip(n) and add a disclaimer (also in the implSpec).

Will change this as well.

Thanks,

Brian


More information about the core-libs-dev mailing list