thomasmueller commented on a change in pull request #163:
URL:
https://github.com/apache/jackrabbit-filevault/pull/163#discussion_r722008858
##########
File path:
vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewSAXImporter.java
##########
@@ -1295,6 +1300,26 @@ public void endElement(String uri, String localName,
String qName) throws SAXExc
}
}
+ private int getNumChildrenWithType(Node parent, Node child) throws
RepositoryException {
Review comment:
If there are many entries, counting can be slow. If all you need is
"getNumChildrenWithType(child.getParent(), child) <= 1" then it's not needed to
count the entries. What about "hasChildWithType(...)"?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]