Getting children of a content with Comparator makes use of TreeSet ------------------------------------------------------------------
Key: MAGNOLIA-3319 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3319 Project: Magnolia Issue Type: Bug Components: core Affects Versions: 4.3.7 Reporter: Vincent Gombert Assignee: Philipp Bärfuss The method DefaultContent.getChildren(Content.ContentFilter, String, Comparator) might not want to use TreeSet for ordering child nodes because TreeSet will consider as equal two nodes which are equivalent for the comparator and then will remove one of them. In other words, if the comparator is not fully discriminant, some nodes will be removed. A better way would be to use an ArrayList and sort it with Collections.sort(List, Comparator). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------