You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2011/06/16 18:03:51 UTC
svn commit: r1136508 -
/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Author: mbenson
Date: Thu Jun 16 16:03:51 2011
New Revision: 1136508
URL: http://svn.apache.org/viewvc?rev=1136508&view=rev
Log:
match exception message from threshold-free LD implementation
Modified:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=1136508&r1=1136507&r2=1136508&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Thu Jun 16 16:03:51 2011
@@ -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");