From 42dde06782be3c958af222ae284e58baf629ff61 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Thu, 28 Jun 2012 16:57:59 +0900 Subject: [PATCH] Make a function a one-liner (A16) ...to better inline it Change-Id: I88496b8f18b81f0c05e4bbf2d1039de1f93e0c25 --- java/src/com/android/inputmethod/latin/AutoCorrection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/AutoCorrection.java b/java/src/com/android/inputmethod/latin/AutoCorrection.java index 6344e5887..e3e7cc21c 100644 --- a/java/src/com/android/inputmethod/latin/AutoCorrection.java +++ b/java/src/com/android/inputmethod/latin/AutoCorrection.java @@ -91,8 +91,8 @@ public class AutoCorrection { public static boolean shouldAutoCorrectToSelf( final ConcurrentHashMap 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,