From 9dedec7c29213bbae7d1917642c5709a441d18e5 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Mon, 12 Mar 2012 16:11:16 +0900 Subject: [PATCH] Make a method accessible for tests Tests are using a wrapper method that's going to disappear soon. The method that becomes package-visible now is destined to be removed too a little later. Change-Id: If99b1c77ed52e050b47216cc7afab5f35c4bbb38 --- java/src/com/android/inputmethod/latin/SuggestedWords.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index 9aa3ebcda..78142b6b3 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -122,7 +122,8 @@ public class SuggestedWords { return addWord(word, info); } - private Builder addWord(CharSequence word, SuggestedWordInfo suggestedWordInfo) { + /* package for tests */ + Builder addWord(CharSequence word, SuggestedWordInfo suggestedWordInfo) { if (!TextUtils.isEmpty(word)) { mWords.add(word); // It's okay if suggestedWordInfo is null since it's checked where it's used.