8264031: (zipfs) Typo in ZipFileSystem.deleteFile ZipException

Reviewed-by: shade, lancea
This commit is contained in:
Simon Legner 2021-04-26 07:24:06 +00:00 committed by Aleksey Shipilev
parent 56fbef0fc0
commit 7b609a2016

View File

@ -1912,7 +1912,7 @@ class ZipFileSystem extends FileSystem {
IndexNode inode = getInode(path);
if (inode == null) {
if (path != null && path.length == 0)
throw new ZipException("root directory </> can't not be delete");
throw new ZipException("root directory </> cannot be deleted");
if (failIfNotExists)
throw new NoSuchFileException(getString(path));
} else {