mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Throw illegal argument exception in BinaryDictionary::editDistance" into jb-mr1-dev
This commit is contained in:
commit
1fd10ea22c
@ -187,6 +187,9 @@ public final class BinaryDictionary extends Dictionary {
|
||||
}
|
||||
|
||||
public static int editDistance(String before, String after) {
|
||||
if (before == null || after == null) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
return editDistanceNative(before.toCharArray(), after.toCharArray());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user