mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8325304: Several classes in java.util.jar and java.util.zip don't specify the behaviour for null arguments
Reviewed-by: lancea, alanb
This commit is contained in:
parent
9cccf0515e
commit
1fb9e3d674
14 changed files with 57 additions and 27 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -58,6 +58,7 @@ public class JarEntry extends ZipEntry {
|
|||
* specified {@code ZipEntry} object.
|
||||
* @param ze the {@code ZipEntry} object to create the
|
||||
* {@code JarEntry} from
|
||||
* @throws NullPointerException if {@code ze} is null
|
||||
*/
|
||||
public JarEntry(ZipEntry ze) {
|
||||
super(ze);
|
||||
|
@ -68,6 +69,7 @@ public class JarEntry extends ZipEntry {
|
|||
* specified {@code JarEntry} object.
|
||||
*
|
||||
* @param je the {@code JarEntry} to copy
|
||||
* @throws NullPointerException if {@code je} is null
|
||||
*/
|
||||
public JarEntry(JarEntry je) {
|
||||
this((ZipEntry)je);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue