Skip to content

Commit 7b609a2

Browse files
simon04shipilev
authored andcommitted
8264031: (zipfs) Typo in ZipFileSystem.deleteFile ZipException
Reviewed-by: shade, lancea
1 parent 56fbef0 commit 7b609a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1912,7 +1912,7 @@ public void deleteFile(byte[] path, boolean failIfNotExists)
19121912
IndexNode inode = getInode(path);
19131913
if (inode == null) {
19141914
if (path != null && path.length == 0)
1915-
throw new ZipException("root directory </> can't not be delete");
1915+
throw new ZipException("root directory </> cannot be deleted");
19161916
if (failIfNotExists)
19171917
throw new NoSuchFileException(getString(path));
19181918
} else {

0 commit comments

Comments
 (0)