From 5ceee1660f957d93bbd28f9f6bfc672a9b0ceb18 Mon Sep 17 00:00:00 2001 From: Elango Cheran Date: Mon, 18 Nov 2024 18:22:16 -0800 Subject: [PATCH] ICU-22960 Use `ICUBinary.getRequiredData()` to load BreakIterator data --- .../src/main/java/com/ibm/icu/text/BreakIteratorFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4j/main/core/src/main/java/com/ibm/icu/text/BreakIteratorFactory.java b/icu4j/main/core/src/main/java/com/ibm/icu/text/BreakIteratorFactory.java index c78f36ed638b..4ab6ccc0aacb 100644 --- a/icu4j/main/core/src/main/java/com/ibm/icu/text/BreakIteratorFactory.java +++ b/icu4j/main/core/src/main/java/com/ibm/icu/text/BreakIteratorFactory.java @@ -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(),"","");