mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-08 02:58:33 +00:00
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 @@ 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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user