diff options
author | 2012-03-13 19:26:52 +0900 | |
---|---|---|
committer | 2012-03-13 19:37:17 +0900 | |
commit | c60fea852d0eaaed7f212dbab0af500d07188c69 (patch) | |
tree | 3fa318072be2606baa376d91242acef4e6047f5f /java/src/com/android/inputmethod/latin/SuggestedWords.java | |
parent | 08adb09e149f920a63ecbc5c2f63d9cb7dbee0ab (diff) | |
download | latinime-c60fea852d0eaaed7f212dbab0af500d07188c69.tar.gz latinime-c60fea852d0eaaed7f212dbab0af500d07188c69.tar.xz latinime-c60fea852d0eaaed7f212dbab0af500d07188c69.zip |
Make the suggested word list final in Builder.
Change-Id: I2ddfab00dc8c141fc989a051f16eb2b3571b7e86
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SuggestedWords.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SuggestedWords.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index a9699af52..676563e1d 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -16,7 +16,6 @@ package com.android.inputmethod.latin; -import android.text.TextUtils; import android.view.inputmethod.CompletionInfo; import java.util.ArrayList; @@ -79,16 +78,10 @@ public class SuggestedWords { private boolean mIsPunctuationSuggestions; private boolean mShouldBlockAutoCorrectionBySafetyNet; private boolean mAllowsToBeAutoCorrected; - private List<SuggestedWordInfo> mSuggestedWordInfoList = - new ArrayList<SuggestedWordInfo>(); + private final List<SuggestedWordInfo> mSuggestedWordInfoList; - public Builder() { - // Nothing to do here. - } - - public Builder setWords(List<SuggestedWordInfo> suggestedWordInfoList) { + public Builder(final List<SuggestedWordInfo> suggestedWordInfoList) { mSuggestedWordInfoList = suggestedWordInfoList; - return this; } public static List<SuggestedWordInfo> getFromCharSequenceList( |