8 Nov
2021
8 Nov
'21
6:59 p.m.
On Mon, 8 Nov 2021 14:52:59 GMT, Daniel Fuchs <dfuchs@openjdk.org> wrote:
Сергей Цыпанов has updated the pull request incrementally with one additional commit since the last revision:
8276806: Use Objects.checkFromIndexSize where possible in java.base
src/java.base/share/classes/java/io/ObjectInputStream.java line 1199:
1197: public void readFully(byte[] buf, int off, int len) throws IOException { 1198: int endoff = off + len; 1199: Objects.checkFromToIndex(off, endoff, buf.length);
Why not using `Objects.checkFromIndexSize(off, len, buf.length);` just like in the previous change at line 1029 above?
Good point, done! ------------- PR: https://git.openjdk.java.net/jdk/pull/6297