Skip to content

Commit 3c063ba

Browse files
joerghohreschke
authored andcommitted
OAK-11969 do not check the existence of the tree twice (#2560)
1 parent caff4d4 commit 3c063ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/NodeDelegate.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,7 @@ public NodeDelegate getChild(String relPath) throws RepositoryException {
339339
@NotNull
340340
public Iterator<NodeDelegate> getChildren() throws InvalidItemStateException {
341341
Iterator<Tree> iterator = getTree().getChildren().iterator();
342-
return IteratorUtils.transform(
343-
IteratorUtils.filter(iterator, tree -> tree.exists()),
342+
return IteratorUtils.transform(iterator,
344343
tree -> new NodeDelegate(sessionDelegate, tree));
345344
}
346345

0 commit comments

Comments
 (0)