mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-13 11:55:38 +00:00
8264031: (zipfs) Typo in ZipFileSystem.deleteFile ZipException
Reviewed-by: shade, lancea
This commit is contained in:
parent
56fbef0fc0
commit
7b609a2016
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user