8376271: ZipFile comment confusingly refers to "native" ZIP file implementation

Reviewed-by: jpai
This commit is contained in:
Eirik Bjørsnøs 2026-01-27 10:28:54 +00:00
parent b1aea55205
commit 4ff5f3a8c0

View File

@ -87,11 +87,11 @@ public class ZipFile implements ZipConstants, Closeable {
private final ZipCoder zipCoder; private final ZipCoder zipCoder;
private volatile boolean closeRequested; private volatile boolean closeRequested;
// The "resource" used by this ZIP file that needs to be // An object holding state which needs to be cleaned after
// cleaned after use. // this ZipFile is closed or becomes unreachable:
// a) the input streams that need to be closed // a) the input streams that need to be closed
// b) the list of cached Inflater objects // b) the list of cached Inflater objects
// c) the "native" source of this ZIP file. // c) the Source object providing read access to the actual ZIP file
private final @Stable CleanableResource res; private final @Stable CleanableResource res;
private static final int STORED = ZipEntry.STORED; private static final int STORED = ZipEntry.STORED;