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; }