Skip to content
Snippets Groups Projects
Verified Commit 3dc2652a authored by David Procházka's avatar David Procházka
Browse files

FIX: functional contains in internal node

parent 370d3cdd
No related branches found
No related tags found
No related merge requests found
......@@ -51,10 +51,6 @@ public class InternalNode extends Node implements Serializable {
}
public boolean contains(LocalAbstractObject object) {
for (Node child : children)
if (child.contains(object))
return true;
return false;
return children.stream().anyMatch(child -> child.contains(object));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment