commit | 3fbe459fa771fe4eae383fc64920f660d13963d9 | [log] [tgz] |
---|---|---|
author | Jatin Matani <jatinm@google.com> | Tue Oct 07 18:42:24 2014 -0700 |
committer | Jatin Matani <jatinm@google.com> | Tue Oct 07 18:43:13 2014 -0700 |
tree | a324f965d15801e4337a8f4a1dcfd02c7b286a9b | |
parent | 37ba3ddd542274819abfc024529ffbcd8f2e1790 [diff] |
Make SuggestionWordInfo non-final for testabilty Needed for ag/563043 Bug:17731683 Change-Id: I4d19e512a311547204f7e8d7885fc886757a18b7
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index e6fd43a..e338e91 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java
@@ -230,7 +230,8 @@ 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;