On 08/10/2016 08:55 PM, Ivan Gerasimov wrote: > http://cr.openjdk.java.net/~igerasim/8163518/01/webrev/ > > Would you please help review it once again?
I wonder, shouldn't it be (n <= k) here:
164 long k = count - pos;
165 if (n < k) {
166 k = (n <= 0) ? 0 : n;
167 }
168 pos += k;
169 return k;
"k" is the max number of chars to skip. It should be possible to skip
all remaining chars when (n == k), right?
Thanks,
-Aleksey
