From 84bbde06c9d24a1f2422478aa04b0122b3c51c2c Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Sat, 2 Jun 2018 19:39:38 -0300 Subject: Minor updates --- base/src/main/java/bjc/utils/math/DualExpr.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'base/src/main/java/bjc/utils/math/DualExpr.java') diff --git a/base/src/main/java/bjc/utils/math/DualExpr.java b/base/src/main/java/bjc/utils/math/DualExpr.java index 9a4ed5e..4d21413 100644 --- a/base/src/main/java/bjc/utils/math/DualExpr.java +++ b/base/src/main/java/bjc/utils/math/DualExpr.java @@ -308,6 +308,14 @@ public class DualExpr { return false; } + if(right == null) { + if(other.right != null) { + return false; + } + } else if(!right.equals(other.right)) { + return false; + } + if(number == null) { if(other.number != null) return false; } else if(!number.equals(other.number)) { @@ -318,14 +326,6 @@ public class DualExpr { return false; } - if(right == null) { - if(other.right != null) { - return false; - } - } else if(!right.equals(other.right)) { - return false; - } - return true; } -} \ No newline at end of file +} -- cgit v1.2.3