Skip to content
Permalink
Browse files
8264031: (zipfs) Typo in ZipFileSystem.deleteFile ZipException
Reviewed-by: shade, lancea
  • Loading branch information
simon04 authored and shipilev committed Apr 26, 2021
1 parent 56fbef0 commit 7b609a20164d2ae255d042b1a23e85355aaa9f01
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java
@@ -1912,7 +1912,7 @@ public void deleteFile(byte[] path, boolean failIfNotExists)
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 {

1 comment on commit 7b609a2

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 7b609a2 Apr 26, 2021

Please sign in to comment.