Skip to content

Commit

Permalink
Parameter values were not properly compared when the value is a `doub…
Browse files Browse the repository at this point in the history
…le[]` array.
  • Loading branch information
desruisseaux committed Dec 6, 2021
1 parent 57da403 commit 570e087
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
* for modifying the behavior of all getter and setter methods.
*
* @author Martin Desruisseaux (IRD, Geomatys)
* @version 1.0
* @version 1.2
*
* @param <T> the type of the value stored in this parameter.
*
Expand Down Expand Up @@ -836,7 +836,7 @@ public boolean equals(final Object object, final ComparisonMode mode) {
if (getClass() == object.getClass()) {
final DefaultParameterValue<?> that = (DefaultParameterValue<?>) object;
return Objects.equals(descriptor, that.descriptor) &&
Objects.equals(value, that.value) &&
Objects.deepEquals(value, that.value) &&
Objects.equals(unit, that.unit);
}
} else if (object instanceof ParameterValue<?>) {
Expand Down

0 comments on commit 570e087

Please sign in to comment.