From 82d5ed6fcda59f27b2016bdf744d4c1372da9d3c Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Tue, 10 Jul 2012 20:43:56 +0900 Subject: [PATCH] Small readability improvement (A100) Change-Id: I6340748654a95d203ed43ceb9a7e6468b5b8ab1c --- java/src/com/android/inputmethod/latin/BinaryDictionary.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionary.java b/java/src/com/android/inputmethod/latin/BinaryDictionary.java index 7da203544..5ecebebf8 100644 --- a/java/src/com/android/inputmethod/latin/BinaryDictionary.java +++ b/java/src/com/android/inputmethod/latin/BinaryDictionary.java @@ -125,8 +125,8 @@ public class BinaryDictionary extends Dictionary { final int count; if (composer.size() <= 1) { - count = TextUtils.isEmpty(prevWord) ? -1 : getBigramsInternal(composer, - prevWordCodePointArray); + if (TextUtils.isEmpty(prevWord)) return null; + count = getBigramsInternal(composer, prevWordCodePointArray); } else { count = getWordsInternal(composer, prevWordCodePointArray, proximityInfo); }