This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
commit 570e087f34d244025f41168eca00d3060565da23 Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Mon Dec 6 16:12:22 2021 +0100 Parameter values were not properly compared when the value is a `double[]` array. --- .../src/main/java/org/apache/sis/parameter/DefaultParameterValue.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sis-referencing/src/main/java/org/apache/sis/parameter/DefaultParameterValue.java b/core/sis-referencing/src/main/java/org/apache/sis/parameter/DefaultParameterValue.java index c1969a8..a3a4347 100644 --- a/core/sis-referencing/src/main/java/org/apache/sis/parameter/DefaultParameterValue.java +++ b/core/sis-referencing/src/main/java/org/apache/sis/parameter/DefaultParameterValue.java @@ -117,7 +117,7 @@ import static org.apache.sis.util.Utilities.deepEquals; * 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. * @@ -836,7 +836,7 @@ convert: if (componentType != null) { 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<?>) {