diff options
author | 2012-09-27 03:28:57 -0700 | |
---|---|---|
committer | 2012-09-27 03:28:57 -0700 | |
commit | 337274a01558b40135ecb1de0b4fe2b67c607958 (patch) | |
tree | 946755db07ee5808be32ae16424dee6dac4abdad /java/src/com/android/inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java | |
parent | b2c1cd08661dc400c00d2545e24e22397f06281b (diff) | |
parent | e7bdd9910141c11701751be32bfed67956a950b6 (diff) | |
download | latinime-337274a01558b40135ecb1de0b4fe2b67c607958.tar.gz latinime-337274a01558b40135ecb1de0b4fe2b67c607958.tar.xz latinime-337274a01558b40135ecb1de0b4fe2b67c607958.zip |
am e7bdd991: am a28a05e9: Cleanup: Make some classes as final
* commit 'e7bdd9910141c11701751be32bfed67956a950b6':
Cleanup: Make some classes as final
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java b/java/src/com/android/inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java index fe5225ebd..11bb97031 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/SpellCheckerProximityInfo.java @@ -22,7 +22,7 @@ import com.android.inputmethod.latin.Constants; import java.util.TreeMap; -public class SpellCheckerProximityInfo { +public final class SpellCheckerProximityInfo { /* public for test */ final public static int NUL = Constants.NOT_A_CODE; @@ -53,7 +53,7 @@ public class SpellCheckerProximityInfo { return result; } - private static class Latin { + private static final class Latin { // This is a map from the code point to the index in the PROXIMITY array. // At the time the native code to read the binary dictionary needs the proximity info be // passed as a flat array spaced by MAX_PROXIMITY_CHARS_SIZE columns, one for each input @@ -122,7 +122,7 @@ public class SpellCheckerProximityInfo { } } - private static class Cyrillic { + private static final class Cyrillic { final private static TreeMap<Integer, Integer> INDICES = CollectionUtils.newTreeMap(); // TODO: The following table is solely based on the keyboard layout. Consult with Russian // speakers on commonly misspelled words/letters. |