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-numbers.git

commit c897177a3f4399e4feefeddff9fdb902f2c554bc
Author: Alex Herbert <[email protected]>
AuthorDate: Sun Dec 8 23:23:24 2019 +0000

    Use final
---
 .../src/main/java/org/apache/commons/numbers/complex/Complex.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
 
b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
index 9f9ac9e..3b48bdb 100644
--- 
a/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
+++ 
b/commons-numbers-complex/src/main/java/org/apache/commons/numbers/complex/Complex.java
@@ -1819,7 +1819,7 @@ public final class Complex implements Serializable  {
 
         if (Double.isFinite(real)) {
             if (Double.isFinite(imaginary2)) {
-                double real2 = 2 * real;
+                final double real2 = 2 * real;
 
                 // Math.cosh returns positive infinity for infinity.
                 // cosh -> inf

Reply via email to