mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8194649: Minor cleanup of parameter checking in ByteArrayOutputStream and ObjectInputStream
Reviewed-by: rriggs
This commit is contained in:
parent
1924909d78
commit
7be1368ad8
2 changed files with 2 additions and 5 deletions
|
@ -1296,7 +1296,6 @@ public class ObjectInputStream
|
|||
* @throws InvalidClassException if the filter rejects creation
|
||||
*/
|
||||
private void checkArray(Class<?> arrayType, int arrayLength) throws InvalidClassException {
|
||||
Objects.requireNonNull(arrayType);
|
||||
if (! arrayType.isArray()) {
|
||||
throw new IllegalArgumentException("not an array type");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue