Merge "Throw illegal argument exception in BinaryDictionary::editDistance" into jb-mr1-dev

This commit is contained in:
Satoshi Kataoka 2012-10-03 01:15:51 -07:00 committed by Android (Google) Code Review
commit 1fd10ea22c

View File

@ -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());
}