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:
Matthew Jason Benson 2011-06-16 16:03:51 +00:00
parent 0467966f4b
commit a6f4e95950

View File

@ -6172,7 +6172,7 @@ allows us to retain the previous cost counts as required by the algorithm (takin
*/ */
public static int getLevenshteinDistance(CharSequence s, CharSequence t, int threshold) { public static int getLevenshteinDistance(CharSequence s, CharSequence t, int threshold) {
if(s == null || t == null) { if(s == null || t == null) {
throw new IllegalArgumentException("String must not be null"); throw new IllegalArgumentException("Strings must not be null");
} }
if(threshold < 0) { if(threshold < 0) {
throw new IllegalArgumentException("Threshold must not be negative"); throw new IllegalArgumentException("Threshold must not be negative");