Loading... (original) (raw)

Uploaded image for project: 'JDK'

  1. JDK
  2. JDK-8194649

Minor cleanup of parameter checking in ByteArrayOutputStream and ObjectInputStream

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().