Make a function a one-liner (A16)

...to better inline it

Change-Id: I88496b8f18b81f0c05e4bbf2d1039de1f93e0c25
This commit is contained in:
Jean Chalard 2012-06-28 16:57:59 +09:00
parent a96a11949f
commit 42dde06782

View file

@ -91,8 +91,8 @@ public class AutoCorrection {
public static boolean shouldAutoCorrectToSelf( public static boolean shouldAutoCorrectToSelf(
final ConcurrentHashMap<String, Dictionary> dictionaries, final ConcurrentHashMap<String, Dictionary> dictionaries,
final CharSequence consideredWord) { final CharSequence consideredWord) {
if (TextUtils.isEmpty(consideredWord)) return false; return (!TextUtils.isEmpty(consideredWord) && !allowsToBeAutoCorrected(dictionaries,
return !allowsToBeAutoCorrected(dictionaries, consideredWord, false); consideredWord, false));
} }
public static boolean hasAutoCorrectionForBinaryDictionary(SuggestedWordInfo suggestion, public static boolean hasAutoCorrectionForBinaryDictionary(SuggestedWordInfo suggestion,