Skip to content

Commit

Permalink
ICU-22960 Use ICUBinary.getRequiredData() to load BreakIterator data
Browse files Browse the repository at this point in the history
  • Loading branch information
echeran committed Nov 19, 2024
1 parent d6f8a14 commit 5ceee16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private static BreakIterator createBreakInstance(ULocale locale, int kind) {
String typeKey = typeKeyExt.isEmpty() ? KIND_NAMES[kind] : KIND_NAMES[kind] + typeKeyExt;
brkfname = rb.getStringWithFallback("boundaries/" + typeKey);
String rulesFileName = ICUData.ICU_BRKITR_NAME+ '/' + brkfname;
bytes = ICUBinary.getData(rulesFileName);
bytes = ICUBinary.getRequiredData(rulesFileName);
}
catch (Exception e) {
throw new MissingResourceException(e.toString(),"","");
Expand Down

0 comments on commit 5ceee16

Please sign in to comment.