match exception message from threshold-free LD implementation
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1136508 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0467966f4b
commit
a6f4e95950
|
@ -6172,7 +6172,7 @@ public class StringUtils {
|
|||
*/
|
||||
public static int getLevenshteinDistance(CharSequence s, CharSequence t, int threshold) {
|
||||
if(s == null || t == null) {
|
||||
throw new IllegalArgumentException("String must not be null");
|
||||
throw new IllegalArgumentException("Strings must not be null");
|
||||
}
|
||||
if(threshold < 0) {
|
||||
throw new IllegalArgumentException("Threshold must not be negative");
|
||||
|
|
Loading…
Reference in New Issue