This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-3.1 in repository https://gitbox.apache.org/repos/asf/sis.git
commit 1930d30455c98e58b42622310977c3541731bb22 Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Fri Jun 28 06:08:01 2024 +0200 Make consistent with the `main` branch. --- .../main/org/apache/sis/xml/bind/gml/TimePeriodBound.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/xml/bind/gml/TimePeriodBound.java b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/xml/bind/gml/TimePeriodBound.java index b70dbc2a38..5b51345ec5 100644 --- a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/xml/bind/gml/TimePeriodBound.java +++ b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/xml/bind/gml/TimePeriodBound.java @@ -22,9 +22,6 @@ import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlTransient; -// Specific to the main and geoapi-3.1 branches: -import org.apache.sis.util.iso.Types; - // Specific to the geoapi-3.1 and geoapi-4.0 branches: import org.opengis.temporal.Instant; @@ -107,8 +104,7 @@ public abstract class TimePeriodBound { if (instant != null) { value = TimeInstant.toXML(instant.getPosition()); if (value == null) { - instant.getIndeterminatePosition() - .ifPresent((p) -> indeterminatePosition = Types.getCodeName(p)); + instant.getIndeterminatePosition().ifPresent((p) -> indeterminatePosition = p.identifier()); } } if (value == null && indeterminatePosition == null) {