aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
diff options
context:
space:
mode:
authorAdrian Velicu <adrianv@google.com>2014-09-22 12:40:41 +0900
committerAdrian Velicu <adrianv@google.com>2014-09-22 14:50:21 +0900
commit30f4a2a4d750dc8c3132d706d9148daf71fbd168 (patch)
tree5027a3f24e8501064d5ccec88093b1082997468a /tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
parent1c810c6725e860a625e9eb403d0a81e8a64e6d62 (diff)
downloadlatinime-30f4a2a4d750dc8c3132d706d9148daf71fbd168.tar.gz
latinime-30f4a2a4d750dc8c3132d706d9148daf71fbd168.tar.xz
latinime-30f4a2a4d750dc8c3132d706d9148daf71fbd168.zip
Hiding SuggestedWords.EMPTY and refactoring code that compares SuggestedWords instances directly to it to use isEmpty instead
Bug: 17560717 Change-Id: I7032bf0ab46f9cf5e3b3312a14e689b5496764c1
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java b/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
index 869c550e0..563261f8f 100644
--- a/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
+++ b/tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java
@@ -147,7 +147,7 @@ public class SuggestedWordsTests extends AndroidTestCase {
assertNull(wordsWithoutTypedWord.getTypedWordInfoOrNull());
// Make sure getTypedWordInfoOrNull() returns null.
- assertNull(SuggestedWords.EMPTY.getTypedWordInfoOrNull());
+ assertNull(SuggestedWords.getEmptyInstance().getTypedWordInfoOrNull());
final SuggestedWords emptySuggestedWords = new SuggestedWords(
new ArrayList<SuggestedWordInfo>(), null /* rawSuggestions */,
@@ -157,6 +157,6 @@ public class SuggestedWordsTests extends AndroidTestCase {
SuggestedWords.INPUT_STYLE_NONE);
assertNull(emptySuggestedWords.getTypedWordInfoOrNull());
- assertNull(SuggestedWords.EMPTY.getTypedWordInfoOrNull());
+ assertNull(SuggestedWords.getEmptyInstance().getTypedWordInfoOrNull());
}
}