Skip to content

Commit

Permalink
CLDR-16939 fix bug, add toString
Browse files Browse the repository at this point in the history
  • Loading branch information
macchiati committed Jan 22, 2024
1 parent 6ce472a commit 70e6851
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ public UnitPrefixInfo(String abbreviation, int base, int power) {
this.base = base;
this.power = power;
}

@Override
public String toString() {
return String.format(
"%s\t%s", abbreviation, String.valueOf(base) + "^" + String.valueOf(power));
}
}

/** Official status of languages */
Expand Down Expand Up @@ -1402,7 +1408,7 @@ public void handlePathValue(String path, String value) {
if (handleUnitUnitIdComponents(parts)) {
return;
}
} else if (level1.equals("unitPrefix")) {
} else if (level1.equals("unitPrefixes")) {
if (handleUnitPrefix(parts)) {
return;
}
Expand Down

0 comments on commit 70e6851

Please sign in to comment.