equal
deleted
inserted
replaced
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) { |