diff options
author | 2012-03-09 14:55:46 +0900 | |
---|---|---|
committer | 2012-03-09 14:55:46 +0900 | |
commit | 90bd4efd101ce36d3b0f9d9d95d2c5dca6603c39 (patch) | |
tree | 12b91bbad4573080e8dbe25ed91d40095009139a /java/src | |
parent | cf8bc92ba0946248a080731fea862b0ff997cafb (diff) | |
download | latinime-90bd4efd101ce36d3b0f9d9d95d2c5dca6603c39.tar.gz latinime-90bd4efd101ce36d3b0f9d9d95d2c5dca6603c39.tar.xz latinime-90bd4efd101ce36d3b0f9d9d95d2c5dca6603c39.zip |
Remove a useless test (B7)
consideredWord is provably never null.
Change-Id: Ifaa0d2471c46f14967e70ad004d2b82f841a4566
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/AutoCorrection.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/AutoCorrection.java b/java/src/com/android/inputmethod/latin/AutoCorrection.java index e9ed90e7b..9c35f8f6f 100644 --- a/java/src/com/android/inputmethod/latin/AutoCorrection.java +++ b/java/src/com/android/inputmethod/latin/AutoCorrection.java @@ -98,8 +98,7 @@ public class AutoCorrection { private static boolean hasAutoCorrectionForBinaryDictionary(WordComposer wordComposer, ArrayList<CharSequence> suggestions, int[] sortedScores, CharSequence consideredWord, double autoCorrectionThreshold) { - if (wordComposer.size() > 1 - && consideredWord != null && suggestions.size() > 0 && sortedScores.length > 0) { + if (wordComposer.size() > 1 && suggestions.size() > 0 && sortedScores.length > 0) { final CharSequence autoCorrectionSuggestion = suggestions.get(0); final int autoCorrectionSuggestionScore = sortedScores[0]; // TODO: when the normalized score of the first suggestion is nearly equals to |