diff --git a/tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckConsistentCasing.java b/tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckConsistentCasing.java index c579b37ad46..f8a064cf6e3 100644 --- a/tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckConsistentCasing.java +++ b/tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckConsistentCasing.java @@ -64,19 +64,19 @@ public CheckCLDR handleSetCldrFileToCheck( } catch (Exception e) { types = Collections.emptyMap(); } + if ((types == null || types.isEmpty()) && !SpecialLocales.isScratchLocale(locale)) { + possibleErrors.add( + new CheckStatus() + .setCause(this) + .setMainType(CheckStatus.warningType) + .setSubtype(Subtype.incorrectCasing) + .setMessage("Could not load casing info for {0}", locale)); + } } else { // no casing info - since the types Map is global, and null checks aren't done, // we are better off with an empty map here types = Collections.emptyMap(); } - if ((types == null || types.isEmpty()) && !SpecialLocales.isScratchLocale(locale)) { - possibleErrors.add( - new CheckStatus() - .setCause(this) - .setMainType(CheckStatus.warningType) - .setSubtype(Subtype.incorrectCasing) - .setMessage("Could not load casing info for {0}", locale)); - } // types may be null, avoid NPE hasCasingInfo = (types == null) ? false : types.size() > 0; return this; diff --git a/tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckCoverage.java b/tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckCoverage.java index cae7bba61a2..7bf4fc65b7f 100644 --- a/tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckCoverage.java +++ b/tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckCoverage.java @@ -131,7 +131,8 @@ public CheckCLDR handleSetCldrFileToCheck( supplementalData = SupplementalDataInfo.getInstance(cldrFileToCheck.getSupplementalDirectory()); coverageLevel = CoverageLevel2.getInstance(supplementalData, localeID); - PluralInfo pluralInfo = supplementalData.getPlurals(PluralType.cardinal, localeID); + PluralInfo pluralInfo = + supplementalData.getPlurals(PluralType.cardinal, localeID, false); if (pluralInfo == supplementalData.getPlurals(PluralType.cardinal, LocaleNames.ROOT) && !SpecialLocales.isScratchLocale(localeID)) { possibleErrors.add(