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 2020/02/03 16:59:48 UTC

[commons-numbers] 02/02: Use final.

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 97b24998940dd6607d4e07cbf4f63eca9b16ecde
Author: aherbert <ah...@apache.org>
AuthorDate: Mon Feb 3 16:59:42 2020 +0000

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

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 33e8a4d..cae5385 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
@@ -2829,8 +2829,8 @@ public final class Complex implements Serializable  {
         }
 
         // Compute with positive values and determine sign at the end
-        double x = Math.abs(real);
-        double y = Math.abs(imaginary);
+        final double x = Math.abs(real);
+        final double y = Math.abs(imaginary);
 
         // Compute
         double t;