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(
final ConcurrentHashMap<String, Dictionary> dictionaries,
final CharSequence consideredWord) {
if (TextUtils.isEmpty(consideredWord)) return false;
return !allowsToBeAutoCorrected(dictionaries, consideredWord, false);
return (!TextUtils.isEmpty(consideredWord) && !allowsToBeAutoCorrected(dictionaries,
consideredWord, false));
}
public static boolean hasAutoCorrectionForBinaryDictionary(SuggestedWordInfo suggestion,