Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Many of the equals() methods have code like the following:
if (obj == null) { return false; } if (!(obj instanceof OpenMapRealVector)) { return false; }
The null check is redundant, as null would cause the instanceof check to fail anyway, so the null check could just be removed.