Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fd10ea2 authored by Satoshi Kataoka's avatar Satoshi Kataoka Committed by Android (Google) Code Review
Browse files

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

parents d445b56c 66d955ad
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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());
    }