aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-07-23 05:25:14 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-07-23 05:25:14 +0000
commitc1a6a00c4f80a08594e54173f02749f259f5a0a1 (patch)
treec75e84df0f6ed9f9d1dc24b6fe27167bb4d8522e /java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
parentb586d0f0495a337e8216bb542bf29ed6b9533b66 (diff)
parent9ebba46c775f37abeb0451602cb323fd45adf33b (diff)
downloadlatinime-c1a6a00c4f80a08594e54173f02749f259f5a0a1.tar.gz
latinime-c1a6a00c4f80a08594e54173f02749f259f5a0a1.tar.xz
latinime-c1a6a00c4f80a08594e54173f02749f259f5a0a1.zip
Merge "Update language to comply with Android’s inclusive language guidance" am: 4eb192212f am: a2695d0ca6 am: a61e424d0a am: 9ebba46c77
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/1371236 Change-Id: I685b5e27b3ae1301a94471e11daa64e3b146ade7
Diffstat (limited to 'java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java')
-rw-r--r--java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java b/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
index 60016371b..c13f0e20a 100644
--- a/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
+++ b/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
@@ -196,8 +196,8 @@ final public class BinaryDictionaryGetter {
}
// ## HACK ## we prevent usage of a dictionary before version 18. The reason for this is, since
- // those do not include whitelist entries, the new code with an old version of the dictionary
- // would lose whitelist functionality.
+ // those do not include allowlist entries, the new code with an old version of the dictionary
+ // would lose allowlist functionality.
private static boolean hackCanUseDictionaryFile(final File file) {
if (!SHOULD_USE_DICT_VERSION) {
return true;
@@ -211,7 +211,7 @@ final public class BinaryDictionaryGetter {
// No version in the options : the format is unexpected
return false;
}
- // Version 18 is the first one to include the whitelist
+ // Version 18 is the first one to include the allowlist.
// Obviously this is a big ## HACK ##
return Integer.parseInt(version) >= 18;
} catch (java.io.FileNotFoundException e) {