diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index e0a045079..1cd48af49 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -6980,10 +6980,10 @@ distance is O(nm), but a bound of k allows us to reduce it to O(km) time by only *

Find the Jaro Winkler Distance which indicates the similarity score between two Strings.

* *

The Jaro measure is the weighted sum of percentage of matched characters from each file and transposed characters. - * Winkler increased this measure for matching initial characters

+ * Winkler increased this measure for matching initial characters.

* *

This implementation is based on the Jaro Winkler similarity algorithm - * from http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance

+ * from http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance.

* *
      * StringUtils.getJaroWinklerDistance(null, null)          = IllegalArgumentException
@@ -7002,8 +7002,8 @@ distance is O(nm), but a bound of k allows us to reduce it to O(km) time by only
      * StringUtils.getJaroWinklerDistance("PENNSYLVANIA", "PENNCISYLVNIA")    = 0.9
      * 
* - * @param s the first String, must not be null - * @param t the second String, must not be null + * @param first the first String, must not be null + * @param second the second String, must not be null * @return result distance * @throws IllegalArgumentException if either String input {@code null} */ @@ -7029,8 +7029,9 @@ public static double getJaroWinklerDistance(CharSequence first, CharSequence sec } /** - * This method returns the jarowinkler score for string matching. - * @param strings to be matched + * This method returns the Jaro-Winkler score for string matching. + * @param first the first string to be matched + * @param second the second string to be machted * @return matching score without scaling factor impact */ private static double score(CharSequence first, CharSequence second) { @@ -7082,13 +7083,14 @@ private static double score(CharSequence first, CharSequence second) { /** * Gets a set of matching characters between two strings. - * + * + *

+ * * @param first The first string. * @param second The second string. * @param limit The maximum distance to consider. * @return A string contain the set of common characters. - * @remarks Two characters from the first string and the second string are considered matching if the character's - * respective positions are no farther than the limit value. */ private static String getSetOfMatchingCharacterWithin(CharSequence first, CharSequence second, int limit) {