Fix unit tests by adding @UsedForTesting
Change-Id: I9448b1bfa7bf94039de737725851e63a2921a443main
parent
28ebe2db23
commit
82fa755bac
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue