You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2020/09/12 22:33:08 UTC
[commons-lang] branch master updated: Useless parentheses
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 875d105 Useless parentheses
875d105 is described below
commit 875d1054c04104a0ce7eecf250a021512fe5f057
Author: Sebb <se...@apache.org>
AuthorDate: Sat Sep 12 23:32:56 2020 +0100
Useless parentheses
---
src/main/java/org/apache/commons/lang3/StringUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index 5e3a9a2..71dcd5a 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -2252,7 +2252,7 @@ public class StringUtils {
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;
}