This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 321c689ceb1994b2fa2468e9a63128366e82ed45
Author: Gilles Sadowski <gillese...@gmail.com>
AuthorDate: Tue Jul 21 15:44:51 2020 +0200

    Checkstyle.
    
    Closes #155.
---
 .../org/apache/commons/math4/optim/linear/SimplexTableau.java  | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/math4/optim/linear/SimplexTableau.java 
b/src/main/java/org/apache/commons/math4/optim/linear/SimplexTableau.java
index 337381c..9525f25 100644
--- a/src/main/java/org/apache/commons/math4/optim/linear/SimplexTableau.java
+++ b/src/main/java/org/apache/commons/math4/optim/linear/SimplexTableau.java
@@ -396,9 +396,8 @@ class SimplexTableau implements Serializable {
         if (minExp <= MAX_IEEE_EXP &&
             minExp > OFFSET_IEEE_EXP) {
             expChange = OFFSET_IEEE_EXP - minExp;
-        }
-        else if (maxExp >= MIN_IEEE_EXP &&
-                 maxExp < OFFSET_IEEE_EXP) {
+        } else if (maxExp >= MIN_IEEE_EXP &&
+                   maxExp < OFFSET_IEEE_EXP) {
             expChange = OFFSET_IEEE_EXP - maxExp;
         }
         return expChange;
@@ -432,7 +431,10 @@ class SimplexTableau implements Serializable {
      * @return a double with the same sign/mantissa bits as d, but exponent 
changed by exp
      */
     private static double updateExponent(double d, int exp) {
-        if (d == 0 || exp == 0) return d;
+        if (d == 0 ||
+            exp == 0) {
+            return d;
+        }
         long bits = Double.doubleToLongBits(d);
         return Double.longBitsToDouble((bits & FRAC) | ((((bits & EXPN) >>> 
52) + exp) << 52));
     }

Reply via email to