aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/SuggestedWords.java
diff options
context:
space:
mode:
authorJatin Matani <jatinm@google.com>2014-10-07 18:42:24 -0700
committerJatin Matani <jatinm@google.com>2014-10-07 18:43:13 -0700
commit3fbe459fa771fe4eae383fc64920f660d13963d9 (patch)
treea324f965d15801e4337a8f4a1dcfd02c7b286a9b /java/src/com/android/inputmethod/latin/SuggestedWords.java
parent37ba3ddd542274819abfc024529ffbcd8f2e1790 (diff)
downloadlatinime-3fbe459fa771fe4eae383fc64920f660d13963d9.tar.gz
latinime-3fbe459fa771fe4eae383fc64920f660d13963d9.tar.xz
latinime-3fbe459fa771fe4eae383fc64920f660d13963d9.zip
Make SuggestionWordInfo non-final for testabilty
Needed for ag/563043 Bug:17731683 Change-Id: I4d19e512a311547204f7e8d7885fc886757a18b7
Diffstat (limited to 'java/src/com/android/inputmethod/latin/SuggestedWords.java')
-rw-r--r--java/src/com/android/inputmethod/latin/SuggestedWords.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java
index e6fd43a07..e338e9102 100644
--- a/java/src/com/android/inputmethod/latin/SuggestedWords.java
+++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java
@@ -230,7 +230,8 @@ public class SuggestedWords {
return candidate.isEligibleForAutoCommit() ? candidate : null;
}
- public static final class SuggestedWordInfo {
+ // non-final for testability.
+ public static class SuggestedWordInfo {
public static final int NOT_AN_INDEX = -1;
public static final int NOT_A_CONFIDENCE = -1;
public static final int MAX_SCORE = Integer.MAX_VALUE;