Skip to content
Snippets Groups Projects
Commit 66d955ad authored by Satoshi Kataoka's avatar Satoshi Kataoka
Browse files

Throw illegal argument exception in BinaryDictionary::editDistance

Bug: 7276803
Change-Id: Icd9bdec0a04179a29d00336819d205627f77b71a
parent 15281adb
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment