Rename a method for readability (A23)

Change-Id: I6f569322e645d36bc82fddf4ec2fd621972e3b47
This commit is contained in:
Jean Chalard 2012-06-28 17:10:25 +09:00
parent ea578f6b1d
commit e398c6c024
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ public class AutoCorrection {
return !isValidWord(dictionaries, word, ignoreCase);
}
public static boolean hasAutoCorrectionForBinaryDictionary(SuggestedWordInfo suggestion,
public static boolean suggestionExceedsAutoCorrectionThreshold(SuggestedWordInfo suggestion,
CharSequence consideredWord, float autoCorrectionThreshold) {
if (null != suggestion) {
//final int autoCorrectionSuggestionScore = sortedScores[0];

View file

@ -236,7 +236,7 @@ public class Suggest {
hasAutoCorrection = true;
} else if (suggestionsSet.isEmpty()) {
hasAutoCorrection = false;
} else if (AutoCorrection.hasAutoCorrectionForBinaryDictionary(suggestionsSet.first(),
} else if (AutoCorrection.suggestionExceedsAutoCorrectionThreshold(suggestionsSet.first(),
consideredWord, mAutoCorrectionThreshold)) {
hasAutoCorrection = true;
} else {