Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed NestedJarFile constructor javadoc #39285

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ public class NestedJarFile extends JarFile {
* Creates a new {@link NestedJarFile} instance to read from the specific
* {@code File}.
* @param file the jar file to be opened for reading
* @param nestedEntryName the nested entry name to open or {@code null}
* @param nestedEntryName the nested entry name to open
* @throws IOException on I/O error
* @throws IllegalArgumentException if {@code nestedEntryName} is {@code null} or
* empty
*/
public NestedJarFile(File file, String nestedEntryName) throws IOException {
this(file, nestedEntryName, null, true, Cleaner.instance);
Expand All @@ -112,9 +114,11 @@ public NestedJarFile(File file, String nestedEntryName) throws IOException {
* Creates a new {@link NestedJarFile} instance to read from the specific
* {@code File}.
* @param file the jar file to be opened for reading
* @param nestedEntryName the nested entry name to open or {@code null}
* @param nestedEntryName the nested entry name to open
* @param version the release version to use when opening a multi-release jar
* @throws IOException on I/O error
* @throws IllegalArgumentException if {@code nestedEntryName} is {@code null} or
* empty
*/
public NestedJarFile(File file, String nestedEntryName, Runtime.Version version) throws IOException {
this(file, nestedEntryName, version, true, Cleaner.instance);
Expand All @@ -124,11 +128,13 @@ public NestedJarFile(File file, String nestedEntryName, Runtime.Version version)
* Creates a new {@link NestedJarFile} instance to read from the specific
* {@code File}.
* @param file the jar file to be opened for reading
* @param nestedEntryName the nested entry name to open or {@code null}
* @param nestedEntryName the nested entry name to open
* @param version the release version to use when opening a multi-release jar
* @param onlyNestedJars if <em>only</em> nested jars should be opened
* @param cleaner the cleaner used to release resources
* @throws IOException on I/O error
* @throws IllegalArgumentException if {@code nestedEntryName} is {@code null} or
* empty
*/
NestedJarFile(File file, String nestedEntryName, Runtime.Version version, boolean onlyNestedJars, Cleaner cleaner)
throws IOException {
Expand Down