Cleanup (A7)
Change-Id: Iba97e0062b702c005ab3ff9ce59f181d19ab7c98
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java
index d12d81a..f4f82f9 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -238,11 +238,9 @@
}
if (whitelistedWord != null) {
- final SuggestedWordInfo whitelistSuggestion;
- whitelistSuggestion = new SuggestedWordInfo(whitelistedWord,
+ suggestionsSet.add(new SuggestedWordInfo(whitelistedWord,
SuggestedWordInfo.MAX_SCORE, SuggestedWordInfo.KIND_WHITELIST,
- Dictionary.TYPE_WHITELIST);
- suggestionsSet.add(whitelistSuggestion);
+ Dictionary.TYPE_WHITELIST));
}
final ArrayList<SuggestedWordInfo> suggestionsContainer =