Loading... (original) (raw)
Minor cleanup of parameter checking in ByteArrayOutputStream and ObjectInputStream
Type:
Bug
Resolution: Fixed
Priority:
P4
Fix Version/s: 11
Affects Version/s: 10, 11
Verification:
Not verified
The parameter checking of ByteArrayOutputStream.write(byte[],int,int) and ObjectInputStream.checkArray(Class<?>, int) could be improved to in the former case use Objects.Objects.checkFromIndexSize() and in the latter to remove Objects.requireNonNull().