summaryrefslogtreecommitdiff
path: root/icu4j/main
diff options
context:
space:
mode:
authorvichang <vichang@google.com>2018-06-06 19:33:49 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-06-06 19:33:49 +0000
commit247d7ee588f9ca6d113a0268542a712de8d8e28b (patch)
tree5855c7c5f571e8cdfc3757b8a40bf2168de9c941 /icu4j/main
parent1e7f4cbbd7fddd7e7b8717b43856e27c5d4703a2 (diff)
parent410d5a5ce44e3885b04e331e3cb488ec49d1a45b (diff)
downloadicu-android-n-iot-release-polk-at1.tar.gz
Merge "Android patch: ticket: 13801: Doc change in BreakIterator"android-n-iot-release-polk-at1
Diffstat (limited to 'icu4j/main')
-rw-r--r--icu4j/main/classes/core/src/com/ibm/icu/text/BreakIterator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/BreakIterator.java b/icu4j/main/classes/core/src/com/ibm/icu/text/BreakIterator.java
index a8a953ba9..1876a08d0 100644
--- a/icu4j/main/classes/core/src/com/ibm/icu/text/BreakIterator.java
+++ b/icu4j/main/classes/core/src/com/ibm/icu/text/BreakIterator.java
@@ -81,7 +81,10 @@ import com.ibm.icu.util.ULocale;
*
* BreakIterator accesses the text it analyzes through a CharacterIterator, which makes
* it possible to use BreakIterator to analyze text in any text-storage vehicle that
- * provides a CharacterIterator interface.
+ * provides a CharacterIterator interface. When BreakIterator.setText(CharacterIterator) or
+ * getText() was called, the CharacterIterator must not be modified, or else the BreakIterator
+ * behavior is undefined. In particular, call BreakIterator.setText(),
+ * not CharacterIterator.setText().
*
* <b>Note:</b> Some types of BreakIterator can take a long time to create, and
* instances of BreakIterator are not currently cached by the system. For