diff options
author | 2012-09-10 17:13:28 -0700 | |
---|---|---|
committer | 2012-09-10 17:13:28 -0700 | |
commit | 591447fd9043db944a180264480db9d6b26c60c0 (patch) | |
tree | 52f62ec0ac768be0813033fb641d16f9f13d50f8 /java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java | |
parent | e9c3082b2187f95cd80bacc202d208597386dd9e (diff) | |
parent | a92a0c5c83209bf34dd0559b5a927c7fe5434721 (diff) | |
download | latinime-591447fd9043db944a180264480db9d6b26c60c0.tar.gz latinime-591447fd9043db944a180264480db9d6b26c60c0.tar.xz latinime-591447fd9043db944a180264480db9d6b26c60c0.zip |
am a92a0c5c: am 9a7e02d6: Merge "Add new binary dictionary format." into jb-mr1-dev
* commit 'a92a0c5c83209bf34dd0559b5a927c7fe5434721':
Add new binary dictionary format.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java b/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java index eebead414..6775de8a8 100644 --- a/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java +++ b/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java @@ -43,17 +43,15 @@ public class FusionDictionary implements Iterable<Word> { public static class Node { ArrayList<CharGroup> mData; // To help with binary generation - int mCachedSize; - int mCachedAddress; + int mCachedSize = Integer.MIN_VALUE; + int mCachedAddress = Integer.MIN_VALUE; + int mCachedParentAddress = 0; + public Node() { mData = new ArrayList<CharGroup>(); - mCachedSize = Integer.MIN_VALUE; - mCachedAddress = Integer.MIN_VALUE; } public Node(ArrayList<CharGroup> data) { mData = data; - mCachedSize = Integer.MIN_VALUE; - mCachedAddress = Integer.MIN_VALUE; } } |