diff options
author | 2013-01-17 22:01:26 +0000 | |
---|---|---|
committer | 2013-01-17 22:01:26 +0000 | |
commit | e6a9655a0362bebccdf0d51ebc3579573617c95a (patch) | |
tree | f33491760e4e164473f174c1981d0bb5e28f7077 /java/src/com/android/inputmethod | |
parent | 937877b8770173d209ac82c17a7e57917ea531fc (diff) | |
parent | b5ac8ef5864ab198c26da55f4134f6e550d37015 (diff) | |
download | latinime-e6a9655a0362bebccdf0d51ebc3579573617c95a.tar.gz latinime-e6a9655a0362bebccdf0d51ebc3579573617c95a.tar.xz latinime-e6a9655a0362bebccdf0d51ebc3579573617c95a.zip |
Merge "Consolidate SuggestedWords.getWordInfo and .getInfo"
Diffstat (limited to 'java/src/com/android/inputmethod')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SuggestedWords.java | 6 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/research/JsonUtils.java | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index 572f2906e..b7ca60fec 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -65,10 +65,6 @@ public final class SuggestedWords { return mSuggestedWordInfoList.get(pos).mWord; } - public SuggestedWordInfo getWordInfo(int pos) { - return mSuggestedWordInfoList.get(pos); - } - public SuggestedWordInfo getInfo(int pos) { return mSuggestedWordInfoList.get(pos); } @@ -113,7 +109,7 @@ public final class SuggestedWords { alreadySeen.add(typedWord.toString()); final int previousSize = previousSuggestions.size(); for (int pos = 1; pos < previousSize; pos++) { - final SuggestedWordInfo prevWordInfo = previousSuggestions.getWordInfo(pos); + final SuggestedWordInfo prevWordInfo = previousSuggestions.getInfo(pos); final String prevWord = prevWordInfo.mWord; // Filter out duplicate suggestion. if (!alreadySeen.contains(prevWord)) { diff --git a/java/src/com/android/inputmethod/research/JsonUtils.java b/java/src/com/android/inputmethod/research/JsonUtils.java index 1dfd01c69..ceba08d47 100644 --- a/java/src/com/android/inputmethod/research/JsonUtils.java +++ b/java/src/com/android/inputmethod/research/JsonUtils.java @@ -98,7 +98,7 @@ import java.util.Map; jsonWriter.beginArray(); final int size = words.size(); for (int j = 0; j < size; j++) { - final SuggestedWordInfo wordInfo = words.getWordInfo(j); + final SuggestedWordInfo wordInfo = words.getInfo(j); jsonWriter.value(wordInfo.toString()); } jsonWriter.endArray(); |