aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2012-09-10 00:28:45 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-10 00:28:46 -0700
commit9a7e02d6fede5cf7f24f0ceb76ff5ad161fdbf60 (patch)
tree52f62ec0ac768be0813033fb641d16f9f13d50f8 /java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java
parent14faf7a47e7415744d628726c596b63d4228aff0 (diff)
parente55b644aefbefb4ac79308c9a59116e69a9c53a2 (diff)
downloadlatinime-9a7e02d6fede5cf7f24f0ceb76ff5ad161fdbf60.tar.gz
latinime-9a7e02d6fede5cf7f24f0ceb76ff5ad161fdbf60.tar.xz
latinime-9a7e02d6fede5cf7f24f0ceb76ff5ad161fdbf60.zip
Merge "Add new binary dictionary format." into jb-mr1-dev
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/FusionDictionary.java10
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;
}
}