From 183a8e349044e5ed529d157d7b60830af956160d Mon Sep 17 00:00:00 2001 From: XenoAmess Date: Sun, 7 Jun 2020 18:08:57 +0800 Subject: [PATCH] MATH-1542: Redundant check. Closes #148. --- .../commons/math4/analysis/polynomials/PolynomialsUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialsUtils.java b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialsUtils.java index 69b290009..c51dd0a97 100644 --- a/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialsUtils.java +++ b/src/main/java/org/apache/commons/math4/analysis/polynomials/PolynomialsUtils.java @@ -299,7 +299,7 @@ public class PolynomialsUtils { @Override public boolean equals(final Object key) { - if ((key == null) || !(key instanceof JacobiKey)) { + if (!(key instanceof JacobiKey)) { return false; }