Skip to content

Commit

Permalink
CLDR-17544 Add tool for assessing issue (#3782)
Browse files Browse the repository at this point in the history
  • Loading branch information
macchiati authored Jul 22, 2024
1 parent 6b21883 commit 0f04fc1
Show file tree
Hide file tree
Showing 2 changed files with 386 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public static void main(String[] args) {
Set<PathHeader> sorted = new TreeSet<>();
final Iterable<String> pathSource =
rootUncovered ? (Iterable<String>) ROOT : file.fullIterable();
RelatedPaths relatedPathsWithNonNullValues = new RelatedPaths();
RelatedSkeletonPaths relatedPathsWithNonNullValues = new RelatedSkeletonPaths();

for (String path : pathSource) {
if (path.contains("yMd") && path.contains("chinese")) {
Expand Down Expand Up @@ -516,7 +516,7 @@ public static void main(String[] args) {
* Related with related values that are not null. NOTE: For now this is quite specific to
* availableFormats
*/
static class RelatedPaths {
static class RelatedSkeletonPaths {
TreeMultimap<String, String> skeletaToRelatedPathWithValue = TreeMultimap.create();
static final FormatParser parser = new DateTimePatternGenerator.FormatParser();

Expand Down Expand Up @@ -548,7 +548,7 @@ public String show(CLDRFile file, String key) {
return Joiner.on(", ").join(sorted);
}

private String simplePattern(String id) {
static String simplePattern(String id) {
TreeSet<String> chars = new TreeSet<>();
for (Object item : parser.set(id).getItems()) {
if (item instanceof DateTimePatternGenerator.VariableField) {
Expand Down
Loading

0 comments on commit 0f04fc1

Please sign in to comment.