-
Enhancement
-
Resolution: Fixed
-
P5
-
None
-
b05
In the method jdk.nio.zipfs.ZipFileSystemProvider#removeFileSystem:
if (filesystems.get(zfpath) == zfs)
filesystems.remove(zfpath);
Instead of separate HashMap.get/remove calls we can just use single HashMap.remove(key, value) call.
It results in cleaner and a bit faster code.
if (filesystems.get(zfpath) == zfs)
filesystems.remove(zfpath);
Instead of separate HashMap.get/remove calls we can just use single HashMap.remove(key, value) call.
It results in cleaner and a bit faster code.