Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8194649

Minor cleanup of parameter checking in ByteArrayOutputStream and ObjectInputStream

XMLWordPrintable

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

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: