Skip to content

Commit

Permalink
Useless parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Sep 12, 2020
1 parent 7ab2112 commit 875d105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/lang3/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -2252,7 +2252,7 @@ public static double getJaroWinklerDistance(final CharSequence first, final Char
if (m == 0) {
return 0D;
}
final double j = ((m / first.length() + m / second.length() + (m - mtp[1]) / m)) / 3;
final double j = (m / first.length() + m / second.length() + (m - mtp[1]) / m) / 3;
final double jw = j < 0.7D ? j : j + Math.min(DEFAULT_SCALING_FACTOR, 1D / mtp[3]) * mtp[2] * (1D - j);
return Math.round(jw * 100.0D) / 100.0D;
}
Expand Down

0 comments on commit 875d105

Please sign in to comment.