diff options
author | 2012-02-06 18:06:20 +0900 | |
---|---|---|
committer | 2012-02-06 18:41:00 +0900 | |
commit | a7f2500001c53dc5a6de9c2525a75229cc7c6645 (patch) | |
tree | 8259adc429321b70aa500f609963c6468507e880 /java/src/com/android/inputmethod/latin/LastComposedWord.java | |
parent | a27cb623901d79be1007b0803898086a12ce731b (diff) | |
download | latinime-a7f2500001c53dc5a6de9c2525a75229cc7c6645.tar.gz latinime-a7f2500001c53dc5a6de9c2525a75229cc7c6645.tar.xz latinime-a7f2500001c53dc5a6de9c2525a75229cc7c6645.zip |
Fix a bug with common objects.
Bug: 5961179
Change-Id: I452efc552c6ab390931f25557d7aee5a64bf054e
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LastComposedWord.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LastComposedWord.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LastComposedWord.java b/java/src/com/android/inputmethod/latin/LastComposedWord.java index 0c8c88f50..f34cb5ff9 100644 --- a/java/src/com/android/inputmethod/latin/LastComposedWord.java +++ b/java/src/com/android/inputmethod/latin/LastComposedWord.java @@ -51,6 +51,8 @@ public class LastComposedWord { public static final LastComposedWord NOT_A_COMPOSED_WORD = new LastComposedWord(null, null, null, "", ""); + // Warning: this is using the passed objects as is and fully expects them to be + // immutable. Do not fiddle with their contents after you passed them to this constructor. public LastComposedWord(final ArrayList<int[]> codes, final int[] xCoordinates, final int[] yCoordinates, final String typedWord, final String autoCorrection) { mCodes = codes; |