8305696: (zipfs) Avoid redundant LinkedHashMap.containsKey call ZipFileSystem.makeParentDirs
Reviewed-by: alanb, jpai, lancea
This commit is contained in:
parent
ec9d816abf
commit
50d7335206
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2009, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -1333,8 +1333,8 @@ class ZipFileSystem extends FileSystem {
|
||||
}
|
||||
// parent exists
|
||||
lookup = lookup.as(node.name, off);
|
||||
if (inodes.containsKey(lookup)) {
|
||||
parent = inodes.get(lookup);
|
||||
parent = inodes.get(lookup);
|
||||
if (parent != null) {
|
||||
node.sibling = parent.child;
|
||||
parent.child = node;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user