From 4847a27f74964a8f04bb40c8520d72096f69f7e7 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Thu, 28 Jun 2012 13:53:36 +0900 Subject: Cleanup (A7) Change-Id: Iba97e0062b702c005ab3ff9ce59f181d19ab7c98 --- java/src/com/android/inputmethod/latin/Suggest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'java/src') diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index d12d81a28..f4f82f9c5 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -238,11 +238,9 @@ public class Suggest { } 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 suggestionsContainer = -- cgit v1.2.3-83-g751a