You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/10/13 16:53:05 UTC
[commons-math] 07/07: sonarfix: remove useless parentheses
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git
commit aedec76b0bee300ca97997d2a13c74d92ea27fa2
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Oct 13 17:46:15 2022 +0100
sonarfix: remove useless parentheses
---
.../math4/legacy/optim/nonlinear/scalar/noderiv/CMAESOptimizer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/CMAESOptimizer.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/CMAESOptimizer.java
index 7606cee33..e61d2baef 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/CMAESOptimizer.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/CMAESOptimizer.java
@@ -840,7 +840,7 @@ public class CMAESOptimizer
@Override
public int hashCode() {
long bits = Double.doubleToLongBits(value);
- return (int) ((1438542 ^ (bits >>> 32) ^ bits));
+ return (int) (1438542 ^ (bits >>> 32) ^ bits);
}
}
/**