-
Bug
-
Resolution: Fixed
-
Major
-
4.3.7
-
None
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).
Acceptance criteria