Merge "Make a method accessible for tests"

This commit is contained in:
Jean Chalard 2012-03-12 00:23:29 -07:00 committed by Android (Google) Code Review
commit 30936116d8

View file

@ -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.