diff options
author | 2013-08-14 18:39:14 +0900 | |
---|---|---|
committer | 2013-08-14 19:19:27 +0900 | |
commit | 665592774c1d5ec90abbe772d4303fe8d8fe8089 (patch) | |
tree | ba5bee55b62db0d3c5d58b2f82964bcd00c7fa9f /java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java | |
parent | e18fdf804acdc7cd8db19c2a03adecc44d71f1ef (diff) | |
download | latinime-665592774c1d5ec90abbe772d4303fe8d8fe8089.tar.gz latinime-665592774c1d5ec90abbe772d4303fe8d8fe8089.tar.xz latinime-665592774c1d5ec90abbe772d4303fe8d8fe8089.zip |
Move some constants in BinaryDictInputOutput to FormatSpec.
Change-Id: I6b12faf35b65238b9a64c82d4d1a6050f980e72e
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java b/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java index c7b063daf..7c7064e4b 100644 --- a/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java +++ b/java/src/com/android/inputmethod/latin/makedict/BinaryDictIOUtils.java @@ -39,8 +39,6 @@ import java.util.Stack; public final class BinaryDictIOUtils { private static final boolean DBG = false; - private static final int MSB24 = 0x800000; - private static final int SINT24_MAX = 0x7FFFFF; private static final int MAX_JUMPS = 10000; private BinaryDictIOUtils() { @@ -921,8 +919,8 @@ public final class BinaryDictIOUtils { // reached the end of the array. final int linkAddressPosition = buffer.position(); int nextLink = buffer.readUnsignedInt24(); - if ((nextLink & MSB24) != 0) { - nextLink = -(nextLink & SINT24_MAX); + if ((nextLink & FormatSpec.MSB24) != 0) { + nextLink = -(nextLink & FormatSpec.SINT24_MAX); } if (nextLink == FormatSpec.NO_FORWARD_LINK_ADDRESS) { /* |