aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/DynamicBinaryDictIOUtils.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-08-26 07:44:41 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-26 07:44:42 +0000
commit918336b7e790e108c109457e89c07f4dab5309c0 (patch)
tree0b80c0d48f519139624fb768c37cc6985278e517 /java/src/com/android/inputmethod/latin/makedict/DynamicBinaryDictIOUtils.java
parent649d040c5a94085ea16090cad8295909626afae9 (diff)
parentbb5b84a82630bc2309c9ae866d43c7934768bb2e (diff)
downloadlatinime-918336b7e790e108c109457e89c07f4dab5309c0.tar.gz
latinime-918336b7e790e108c109457e89c07f4dab5309c0.tar.xz
latinime-918336b7e790e108c109457e89c07f4dab5309c0.zip
Merge "[Refactor] Add DictDecoder.getTerminalPosition."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/DynamicBinaryDictIOUtils.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/DynamicBinaryDictIOUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/DynamicBinaryDictIOUtils.java b/java/src/com/android/inputmethod/latin/makedict/DynamicBinaryDictIOUtils.java
index 77dba8853..bf3d19101 100644
--- a/java/src/com/android/inputmethod/latin/makedict/DynamicBinaryDictIOUtils.java
+++ b/java/src/com/android/inputmethod/latin/makedict/DynamicBinaryDictIOUtils.java
@@ -60,7 +60,7 @@ public final class DynamicBinaryDictIOUtils {
final DictBuffer dictBuffer = dictDecoder.getDictBuffer();
dictBuffer.position(0);
final FileHeader header = dictDecoder.readHeader();
- final int wordPosition = BinaryDictIOUtils.getTerminalPosition(dictDecoder, word);
+ final int wordPosition = dictDecoder.getTerminalPosition(word);
if (wordPosition == FormatSpec.NOT_VALID_WORD) return;
dictBuffer.position(wordPosition);
@@ -263,7 +263,7 @@ public final class DynamicBinaryDictIOUtils {
final DictBuffer dictBuffer = dictDecoder.getDictBuffer();
if (bigramStrings != null) {
for (final WeightedString bigram : bigramStrings) {
- int position = BinaryDictIOUtils.getTerminalPosition(dictDecoder, bigram.mWord);
+ int position = dictDecoder.getTerminalPosition(bigram.mWord);
if (position == FormatSpec.NOT_VALID_WORD) {
// TODO: figure out what is the correct thing to do here.
} else {