src/java.base/share/classes/java/io/ObjectInputStream.java
changeset 48436 45a9a7a49379
parent 47425 96179f26139e
child 49438 879cf9f18688
equal deleted inserted replaced
48435:20fe8cd3179d 48436:45a9a7a49379
  1294      * @throws IllegalArgumentException if arrayType isn't actually an array type
  1294      * @throws IllegalArgumentException if arrayType isn't actually an array type
  1295      * @throws NegativeArraySizeException if arrayLength is negative
  1295      * @throws NegativeArraySizeException if arrayLength is negative
  1296      * @throws InvalidClassException if the filter rejects creation
  1296      * @throws InvalidClassException if the filter rejects creation
  1297      */
  1297      */
  1298     private void checkArray(Class<?> arrayType, int arrayLength) throws InvalidClassException {
  1298     private void checkArray(Class<?> arrayType, int arrayLength) throws InvalidClassException {
  1299         Objects.requireNonNull(arrayType);
       
  1300         if (! arrayType.isArray()) {
  1299         if (! arrayType.isArray()) {
  1301             throw new IllegalArgumentException("not an array type");
  1300             throw new IllegalArgumentException("not an array type");
  1302         }
  1301         }
  1303 
  1302 
  1304         if (arrayLength < 0) {
  1303         if (arrayLength < 0) {