aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-09-27 03:27:08 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-09-27 03:27:08 -0700
commite7bdd9910141c11701751be32bfed67956a950b6 (patch)
tree946755db07ee5808be32ae16424dee6dac4abdad /java/src/com/android/inputmethod/latin/Suggest.java
parentbeb713ed81599d92f08b521f0a872072f9d9c3e0 (diff)
parenta28a05e971cc242b338331a3b78276fa95188d19 (diff)
downloadlatinime-e7bdd9910141c11701751be32bfed67956a950b6.tar.gz
latinime-e7bdd9910141c11701751be32bfed67956a950b6.tar.xz
latinime-e7bdd9910141c11701751be32bfed67956a950b6.zip
am a28a05e9: Cleanup: Make some classes as final
* commit 'a28a05e971cc242b338331a3b78276fa95188d19': Cleanup: Make some classes as final
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r--java/src/com/android/inputmethod/latin/Suggest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java
index 278c4b9ce..f0e3b4ebd 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -34,7 +34,7 @@ import java.util.concurrent.ConcurrentHashMap;
* This class loads a dictionary and provides a list of suggestions for a given sequence of
* characters. This includes corrections and completions.
*/
-public class Suggest {
+public final class Suggest {
public static final String TAG = Suggest.class.getSimpleName();
// Session id for
@@ -362,7 +362,8 @@ public class Suggest {
return suggestionsList;
}
- private static class SuggestedWordInfoComparator implements Comparator<SuggestedWordInfo> {
+ private static final class SuggestedWordInfoComparator
+ implements Comparator<SuggestedWordInfo> {
// This comparator ranks the word info with the higher frequency first. That's because
// that's the order we want our elements in.
@Override