Fix unit tests by adding @UsedForTesting

Change-Id: I9448b1bfa7bf94039de737725851e63a2921a443
main
Keisuke Kuroyanagi 2014-05-09 14:44:44 +09:00
parent 28ebe2db23
commit 82fa755bac
1 changed files with 1 additions and 2 deletions

View File

@ -373,8 +373,7 @@ public final class BinaryDictionary extends Dictionary {
return getProbabilityNative(mNativeDict, codePoints); return getProbabilityNative(mNativeDict, codePoints);
} }
// TODO: Add a batch process version (isValidBigramMultiple?) to avoid excessive numbers of jni @UsedForTesting
// calls when checking for changes in an entire dictionary.
public boolean isValidBigram(final String word0, final String word1) { public boolean isValidBigram(final String word0, final String word1) {
return getBigramProbability(word0, word1) != NOT_A_PROBABILITY; return getBigramProbability(word0, word1) != NOT_A_PROBABILITY;
} }