diff --git a/tools/cldr-code/src/main/java/org/unicode/cldr/tool/AddPopulationData.java b/tools/cldr-code/src/main/java/org/unicode/cldr/tool/AddPopulationData.java index c7a9a625bf7..2647c51d2e8 100644 --- a/tools/cldr-code/src/main/java/org/unicode/cldr/tool/AddPopulationData.java +++ b/tools/cldr-code/src/main/java/org/unicode/cldr/tool/AddPopulationData.java @@ -203,8 +203,8 @@ private static void showCountryData(String country) { } /** - * Gets the percent of people that can read in a particular country - * Values are in the range 0 to 100 + * Gets the percent of people that can read in a particular country. Values are in the range 0 + * to 100 */ public static Double getLiteracy(String country) { return firstNonZero( @@ -282,7 +282,7 @@ private static void loadFactbookInfo(String filename, final Counter2 fac @Override public boolean handle(String line) { String[] pieces = splitCommaSeparated(line); - String countryName = FactbookLine.CountryName.get(pieces); + String countryName = FactbookLine.CountryName.get(pieces); if (countryName.equals("name")) { return false; } @@ -398,7 +398,9 @@ public boolean handle(String line) { return false; } code = code.toUpperCase(Locale.ENGLISH); - String valueString = FBLiteracy.Percent.get(pieces).trim(); // Values are in the range 0 to 100 + String valueString = + FBLiteracy.Percent.get(pieces) + .trim(); // Values are in the range 0 to 100 double percent = Double.parseDouble(valueString); factbook_literacy.put(code, percent); if (ADD_POP) { @@ -524,7 +526,10 @@ static List> getUnLiteracy(Output hadErr) throws I continue; } double total = literate + illiterate; - double percent = ((double) literate) * 100 / total; // Multiply by 100 to put values in range 0 to 100 + double percent = + ((double) literate) + * 100 + / total; // Multiply by 100 to put values in range 0 to 100 result.add(Pair.of(code, percent)); } if (result.isEmpty()) { diff --git a/tools/cldr-code/src/main/java/org/unicode/cldr/tool/UnLiteracyParser.java b/tools/cldr-code/src/main/java/org/unicode/cldr/tool/UnLiteracyParser.java index f3138ba083d..c90d868a3a1 100644 --- a/tools/cldr-code/src/main/java/org/unicode/cldr/tool/UnLiteracyParser.java +++ b/tools/cldr-code/src/main/java/org/unicode/cldr/tool/UnLiteracyParser.java @@ -183,7 +183,8 @@ private void handleRecord() { final Long new_value = getLongValue(); final Long old_value = pa.perLiteracy.put(literacy, new_value); if (old_value != null) { - // Suriname is known to include duplicate records, 1 normal and 1 "Excluding the institutional population" + // Suriname is known to include duplicate records, 1 normal and 1 "Excluding the + // institutional population" // Resolve this by taking higher value if (country.equals("Suriname")) { pa.perLiteracy.put(literacy, Math.max(old_value, new_value));