Skip to content

Commit

Permalink
CLDR-17014 Fix extra-path bug with cldrFile.fullIterable
Browse files Browse the repository at this point in the history
-Use cldrFile.fullIterable.forEach instead of xmlSource.forEach in CldrXmlWriter
  • Loading branch information
btangmu committed Jan 9, 2025
1 parent a4afc3f commit 5f96bdc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public CldrXmlWriter(CLDRFile cldrFile, PrintWriter pw, Map<String, ?> options)

xmlSource = cldrFile.dataSource;
orderedSet = new TreeSet<>(cldrFile.getComparator());
xmlSource.forEach(orderedSet::add);
cldrFile.fullIterable().forEach(orderedSet::add);
if (orderedSet.size() > 0) { // May not have any elements.
final String firstPath = orderedSet.iterator().next();
firstFullPath = cldrFile.getFullXPath(firstPath);
Expand Down

0 comments on commit 5f96bdc

Please sign in to comment.