This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/sis.git
commit 111bb546601d2ef8df7e0415edf20f1579c1c6b6 Merge: 9a2d8c0836 d20cb949f5 Author: Martin Desruisseaux <[email protected]> AuthorDate: Mon Nov 30 19:02:08 2026 +0100 Merge branch 'geoapi-3.1'. Contains new API in `TiledGridCoverage.TileIterator` and a new parent class for `GridGeometry`. .../apache/sis/buildtools/gradle/Dependency.java | 3 +- endorsed/build.gradle.kts | 19 - .../main/org/apache/sis/coverage/Domain.java | 90 ++ .../org/apache/sis/coverage/RegionOfInterest.java | 2 +- .../org/apache/sis/coverage/SampleDimension.java | 8 +- .../sis/coverage/grid/AggregatedGridCoverage.java | 4 +- .../sis/coverage/grid/ConvertedGridCoverage.java | 62 +- .../coverage/grid/CoordinateOperationFinder.java | 4 +- .../apache/sis/coverage/grid/DimensionReducer.java | 2 +- .../sis/coverage/grid/DimensionalityReduction.java | 10 +- .../apache/sis/coverage/grid/GridCRSBuilder.java | 2 +- .../apache/sis/coverage/grid/GridClippingMode.java | 6 +- .../org/apache/sis/coverage/grid/GridCoverage.java | 6 +- .../apache/sis/coverage/grid/GridCoverage2D.java | 4 +- .../sis/coverage/grid/GridCoverageBuilder.java | 2 +- .../sis/coverage/grid/GridCoverageProcessor.java | 4 +- .../apache/sis/coverage/grid/GridDerivation.java | 28 +- .../org/apache/sis/coverage/grid/GridExtent.java | 4 +- .../org/apache/sis/coverage/grid/GridGeometry.java | 146 +- .../apache/sis/coverage/grid/ImageRenderer.java | 4 +- .../sis/coverage/grid/ResampledGridCoverage.java | 4 +- .../internal/shared/CommonDomainFinder.java | 2 +- .../apache/sis/image/BandedSampleConverter.java | 14 +- .../main/org/apache/sis/image/Interpolation.java | 4 +- .../main/org/apache/sis/image/PlanarImage.java | 2 +- .../main/org/apache/sis/image/ResampledImage.java | 4 +- .../main/org/apache/sis/image/Visualization.java | 4 +- .../image/internal/shared/ColorModelFactory.java | 38 +- .../image/internal/shared/ColorScaleBuilder.java | 104 +- .../sis/image/internal/shared/FillValues.java | 2 +- .../sis/image/internal/shared/ImageUtilities.java | 75 +- .../sis/image/internal/shared/RasterFactory.java | 4 +- .../image/internal/shared/ScaledColorModel.java | 15 +- .../image/internal/shared/ScaledColorSpace.java | 22 +- .../sis/image/internal/shared/TilePlaceholder.java | 27 +- .../sis/coverage/grid/DefaultEvaluatorTest.java | 4 +- .../coverage/grid/DimensionalityReductionTest.java | 8 +- .../sis/coverage/grid/GridDerivationTest.java | 6 +- .../apache/sis/coverage/grid/GridGeometryTest.java | 6 +- .../coverage/grid/ResampledGridCoverageTest.java | 12 +- .../org/apache/sis/image/AggregatedImageTest.java | 2 +- .../internal/shared/ColorModelBuilderTest.java | 31 +- .../internal/shared/ScaledColorSpaceTest.java | 9 +- .../org/apache/sis/metadata/MetadataStandard.java | 3 +- .../internal/shared/ReferencingServices.java | 2 +- .../sis/metadata/iso/citation/Citations.java | 3 +- .../apache/sis/metadata/sql/MetadataSource.java | 3 +- .../metadata/sql/internal/shared/Initializer.java | 4 +- .../metadata/sql/internal/shared/package-info.java | 4 +- .../main/org/apache/sis/xml/ReferenceResolver.java | 1 + .../main/org/apache/sis/xml/XML.java | 5 +- .../org/apache/sis/xml/bind/TypeRegistration.java | 15 +- .../xml/internal/shared/ExternalLinkHandler.java | 16 +- .../apache/sis/xml/internal/shared/URISource.java | 21 +- .../sis/xml/internal/shared/XmlUtilities.java | 2 - .../metadata/iso/citation/DefaultContactTest.java | 65 +- .../DefaultServiceIdentificationTest.java | 2 +- .../org/apache/sis/metadata/xml/TestUsingFile.java | 14 +- .../org/apache/sis/xml/ReferenceResolverTest.java | 32 +- .../org/apache/sis/xml/XLinkMarshallingTest.java | 44 +- .../apache/sis/xml/bind/gml/TimePeriodTest.java | 2 +- .../sis/xml/internal/shared/URISourceTest.java | 68 + .../apache/sis/xml/test/DocumentComparator.java | 8 +- .../test/org/apache/sis/xml/test/TestCase.java | 132 +- .../org/apache/sis/map/coverage/RenderingData.java | 17 +- .../main/org/apache/sis/portrayal/Canvas.java | 4 +- .../apache/sis/style/se1/function/Interpolate.java | 8 +- .../apache/sis/map/coverage/RenderingDataTest.java | 2 +- .../xml/bind/fra/DirectReferenceSystemTest.java | 6 +- .../apache/sis/referencing/AuthorityFactories.java | 3 +- .../main/org/apache/sis/referencing/CommonCRS.java | 7 +- .../factory/ConcurrentAuthorityFactory.java | 6 +- .../operation/transform/InterpolatedTransform.java | 4 +- .../sis/parameter/ParameterMarshallingTest.java | 26 +- .../sis/referencing/ImmutableIdentifierTest.java | 12 +- .../referencing/crs/DefaultCompoundCRSTest.java | 5 +- .../referencing/crs/DefaultEngineeringCRSTest.java | 1 + .../referencing/crs/DefaultProjectedCRSTest.java | 13 + .../referencing/datum/DefaultEllipsoidTest.java | 7 +- .../datum/DefaultPrimeMeridianTest.java | 13 +- .../datum/DefaultTemporalDatumTest.java | 2 +- .../datum/DefaultVerticalDatumTest.java | 1 + .../operation/SingleOperationMarshallingTest.java | 18 +- .../apache/sis/test/integration/MetadataTest.java | 2 + .../sis/test/integration/MetadataVerticalTest.java | 1 + .../CC_GeneralOperationParameterTest.java | 27 +- .../CC_OperationParameterGroupTest.java | 4 +- .../apache/sis/storage/geoheif/FromImageIO.java | 16 +- .../main/org/apache/sis/storage/geoheif/Image.java | 2 +- .../apache/sis/storage/geoheif/ImageResource.java | 84 +- .../sis/storage/geoheif/UncompressedImage.java | 9 +- .../org/apache/sis/storage/geotiff/DataSubset.java | 64 +- .../sis/storage/geotiff/ImageFileDirectory.java | 18 +- .../sis/storage/geotiff/writer/GeoEncoder.java | 4 +- .../sis/storage/geotiff/GeoTiffStoreTest.java | 2 +- .../org/apache/sis/storage/geotiff/ReaderTest.java | 4 +- .../storage/geotiff/reader/ModelTiePointsTest.java | 2 +- .../sis/storage/netcdf/NetcdfStoreProvider.java | 3 +- .../sis/storage/netcdf/base/GridAdjustment.java | 2 +- .../sis/storage/netcdf/base/GridMapping.java | 4 +- .../apache/sis/storage/netcdf/NetcdfStoreTest.java | 2 +- .../sis/storage/sql/postgis/RasterWriter.java | 2 +- .../main/org/apache/sis/io/stream/Region.java | 2 +- .../sis/storage/AbstractGridCoverageResource.java | 2 +- .../org/apache/sis/storage/DataStoreRegistry.java | 3 +- .../sis/storage/MemoryGridCoverageResource.java | 2 +- .../apache/sis/storage/aggregate/GridSlice.java | 2 +- .../sis/storage/aggregate/GridSliceLocator.java | 2 +- .../apache/sis/storage/esri/AsciiGridStore.java | 2 +- .../apache/sis/storage/image/WorldFileStore.java | 2 +- .../sis/storage/metadata/MetadataBuilder.java | 2 +- .../sis/storage/tiling/GridCoordinateSystem.java | 111 ++ .../apache/sis/storage/tiling/ImagePyramid.java | 2 +- .../org/apache/sis/storage/tiling/TileMatrix.java | 2 +- .../sis/storage/tiling/TiledDeferredImage.java | 14 +- .../sis/storage/tiling/TiledGridCoverage.java | 1493 ++++++++++++++------ .../storage/tiling/TiledGridCoverageResource.java | 15 +- .../apache/sis/storage/tiling/package-info.java | 9 +- .../org/apache/sis/storage/CoverageSubsetTest.java | 2 +- .../sis/storage/tiling/ImageTileMatrixTest.java | 9 +- .../src/org.apache.sis.util/main/module-info.java | 1 - .../org/apache/sis/converter/SystemRegistry.java | 5 +- .../org/apache/sis/converter/package-info.java | 2 +- .../main/org/apache/sis/measure/Angle.java | 13 +- .../main/org/apache/sis/setup/Configuration.java | 10 +- .../main/org/apache/sis/system/DaemonThread.java | 6 +- .../main/org/apache/sis/system/DataURI.java | 3 +- .../main/org/apache/sis/system/Modules.java | 5 +- .../org/apache/sis/system/OptionalDependency.java | 4 +- .../main/org/apache/sis/system/Shutdown.java | 6 +- .../main/org/apache/sis/system/SystemListener.java | 42 +- .../sis/util/internal/shared/MetadataServices.java | 2 +- .../sis/util/resources/IndexedResourceBundle.java | 3 - .../jakarta.servlet.ServletContainerInitializer | 1 - .../javax.servlet.ServletContainerInitializer | 1 - .../src/org.apache.sis.web/main/module-info.java | 61 - .../org/apache/sis/web/jakarta/JavaBeanHook.java | 60 - .../apache/sis/web/jakarta/ServletListener.java | 69 - .../org/apache/sis/web/jakarta/package-info.java | 26 - .../org/apache/sis/web/javaee/JavaBeanHook.java | 60 - .../org/apache/sis/web/javaee/ServletListener.java | 69 - .../org/apache/sis/web/javaee/package-info.java | 27 - .../org/apache/sis/web/osgi/OSGiActivator.java | 83 -- .../main/org/apache/sis/web/osgi/package-info.java | 23 - .../src/org.apache.sis.web/webapp/WEB-INF/web.xml | 24 - incubator/build.gradle.kts | 3 +- .../sis/storage/coveragejson/CoverageResource.java | 2 +- .../coveragejson/CoverageJsonStoreTest.java | 2 +- .../test/module-info.java | 1 + netbeans-project/ivy.xml | 8 +- netbeans-project/nbproject/project.properties | 2 + netbeans-project/nbproject/project.xml | 1 + .../apache/sis/gui/coverage/GridSliceSelector.java | 2 +- .../org/apache/sis/gui/coverage/Stretching.java | 2 +- .../main/org/apache/sis/gui/map/MapCanvas.java | 4 +- .../org/apache/sis/gui/map/OperationFinder.java | 6 +- .../main/org/apache/sis/gui/map/StatusBar.java | 4 +- .../gui/referencing/RecentReferenceSystems.java | 2 +- .../org/apache/sis/storage/gdal/TiledCoverage.java | 17 +- settings.gradle.kts | 1 + 160 files changed, 2281 insertions(+), 1720 deletions(-) diff --cc buildSrc/src/main/java/org/apache/sis/buildtools/gradle/Dependency.java index bd9e8bca8d,14b26b9db7..bada75e37b --- a/buildSrc/src/main/java/org/apache/sis/buildtools/gradle/Dependency.java +++ b/buildSrc/src/main/java/org/apache/sis/buildtools/gradle/Dependency.java @@@ -80,8 -82,8 +80,7 @@@ public final class Dependency Map.entry("storage.json", "storage:sis-json"), Map.entry("storage.hdf", "storage:sis-hdf"), Map.entry("storage.ogcwxs", "storage:sis-ogcwxs"), -- Map.entry("storage.ogcapi", "storage:sis-ogcapi"), - Map.entry("web", "application:sis-web") - Map.entry("portrayal.map", "core:sis-portrayal-map") ++ Map.entry("storage.ogcapi", "storage:sis-ogcapi") ); /** diff --cc endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/Domain.java index 0000000000,50ed97a46e..856384641d mode 000000,100644..100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/Domain.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/Domain.java @@@ -1,0 -1,91 +1,90 @@@ + /* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.apache.sis.coverage; + + import java.util.Optional; + import java.time.temporal.Temporal; + import org.opengis.geometry.Envelope; + import org.opengis.metadata.extent.GeographicBoundingBox; + import org.opengis.referencing.ReferenceSystem; + import org.opengis.referencing.crs.CoordinateReferenceSystem; -import org.opengis.referencing.gazetteer.ReferenceSystemUsingIdentifiers; + import org.apache.sis.coverage.grid.IncompleteGridGeometryException; + + + /** + * The reference system and extent of a coverage. + * This is a description of the inputs expected by a {@link BandedCoverage}. + * The outputs are described by {@link SampleDimension}. + * + * @author Martin Desruisseaux (IRD, Geomatys) + * @version 1.8 + * + * @since SIS 1.8 + */ + public abstract class Domain { + /** + * Creates a new domain. + */ + protected Domain() { + } + + /** + * Returns the real world reference system. + * This is often a {@linkplain CoordinateReferenceSystem Coordinate Reference System}, - * but {@linkplain ReferenceSystemUsingIdentifiers Reference System Using Identifiers} ++ * but Reference System Using Identifiers + * is also allowed. + * + * @return the reference system. + * @throws IncompleteGridGeometryException if this domain is a grid geometry with no <abbr>CRS</abbr>. + */ + public abstract ReferenceSystem getReferenceSystem(); + + /** + * Returns the bounding box of real world coordinates for this domain. + * The envelope encompasses all cell surfaces, from the left border of leftmost + * cell to the right border of the rightmost cell and similarly along other axes. + * If the {@linkplain #getReferenceSystem() reference system of this domain} is a + * {@linkplain CoordinateReferenceSystem Coordinate Reference System} (<abbr>CRS</abbr>), + * then the envelope is associated to the same <abbr>CRS</abbr>. + * Otherwise, an arbitrary <abbr>CRS</abbr> is used. + * + * @return the envelope in real world coordinates. + * @throws IncompleteGridGeometryException if this domain is a grid geometry with no envelope. + */ + public abstract Envelope getEnvelope(); + + /** + * Returns the approximate latitude and longitude coordinates of the domain. + * The prime meridian is Greenwich, but the geodetic reference frame is not necessarily <abbr>WGS</abbr> 1984. + * This is typically computed from the {@linkplain #getEnvelope() envelope} if the coordinate reference system + * contains an horizontal component such as a geographic or projected <abbr>CRS</abbr>. + * + * @return the geographic bounding box in real world coordinates. + */ + public abstract Optional<GeographicBoundingBox> getGeographicExtent(); + + /** + * Returns the start time and end time of coordinates of the domain. + * If the domain has no temporal dimension, then this method returns an empty array. + * If only the start time or end time is defined, then the array has a length of 1. + * Otherwise, this method returns an array of length 2 with the start time (inclusive) + * in the first element and the end time (exclusive) in the last element. + * + * @return time range as an array of length 0 (if none), 1 or 2. + */ + public abstract Temporal[] getTemporalExtent(); + } diff --cc endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/SampleDimension.java index 0bb5f2465c,4cd141e917..f7586c3675 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/SampleDimension.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/SampleDimension.java @@@ -66,8 -69,8 +66,8 @@@ import org.apache.sis.util.iso.Names * </table> * In this example, sample values in range [10…210] define a quantitative category, while all others categories are qualitative. * - * <h2>Relationship with metadata</h2> + * <h2>Coverage and metadata sample dimensions</h2> - * This class provides the same information as ISO 19115 {@link org.opengis.metadata.content.SampleDimension}, + * This class provides the same information as ISO 19115 {@code org.opengis.metadata.content.SampleDimension}, * but organized in a different way. The use of the same name may seem a risk, but those two types are typically * not used at the same time. * diff --cc endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/ConvertedGridCoverage.java index 43f33394fa,d3bc6a6200..2c1c36ca80 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/ConvertedGridCoverage.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/ConvertedGridCoverage.java @@@ -31,11 -31,13 +31,13 @@@ import org.apache.sis.coverage.Category import org.apache.sis.coverage.SampleDimension; import org.apache.sis.measure.MeasurementRange; import org.apache.sis.measure.NumberRange; + import org.apache.sis.math.NumberType; import org.apache.sis.image.DataType; import org.apache.sis.image.ImageProcessor; + import org.apache.sis.util.logging.Logging; -// Specific to the geoapi-3.1 and geoapi-4.0 branches: -import org.opengis.coverage.CannotEvaluateException; +// Specific to the main branch: +import org.apache.sis.coverage.CannotEvaluateException; /** diff --cc endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridGeometry.java index 4985e4a373,f2725c666c..7e539955ec --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridGeometry.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridGeometry.java @@@ -1022,8 -1025,8 +1024,8 @@@ public class GridGeometry extends Domai * * @since SIS 1.6 */ - public CoordinateMetadata getCoordinateMetadata() { + public DefaultCoordinateMetadata getCoordinateMetadata() { - return new DefaultCoordinateMetadata(getCoordinateReferenceSystem(), null); + return new DefaultCoordinateMetadata(getReferenceSystem(), null); } /** diff --cc endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/iso/citation/DefaultContactTest.java index 26b671b29e,f25c1a9b14..3186009211 --- a/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/iso/citation/DefaultContactTest.java +++ b/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/iso/citation/DefaultContactTest.java @@@ -87,13 -65,12 +65,12 @@@ public final class DefaultContactTest e @Test @SuppressWarnings("deprecation") public void testSetPhones() { - init(); - final DefaultTelephone tel1 = new DefaultTelephone("00.01", UnsupportedCodeList.valueOf("SMS")); - final DefaultTelephone tel2 = new DefaultTelephone("00.02", UnsupportedCodeList.VOICE); - final DefaultTelephone tel3 = new DefaultTelephone("00.03", UnsupportedCodeList.FACSIMILE); - final DefaultTelephone tel4 = new DefaultTelephone("00.04", UnsupportedCodeList.VOICE); - final DefaultTelephone[] tels = new DefaultTelephone[] {tel1, tel2, tel3, tel4}; - final DefaultContact contact = new DefaultContact(); - final var tel1 = new DefaultTelephone("00.01", TelephoneType.SMS); - final var tel2 = new DefaultTelephone("00.02", TelephoneType.VOICE); - final var tel3 = new DefaultTelephone("00.03", TelephoneType.FACSIMILE); - final var tel4 = new DefaultTelephone("00.04", TelephoneType.VOICE); ++ final var tel1 = new DefaultTelephone("00.01", UnsupportedCodeList.valueOf("SMS")); ++ final var tel2 = new DefaultTelephone("00.02", UnsupportedCodeList.VOICE); ++ final var tel3 = new DefaultTelephone("00.03", UnsupportedCodeList.FACSIMILE); ++ final var tel4 = new DefaultTelephone("00.04", UnsupportedCodeList.VOICE); + final var tels = new DefaultTelephone[] {tel1, tel2, tel3, tel4}; + final var contact = new DefaultContact(); contact.setPhones(List.of(tel1, tel2, tel3, tel4)); assertArrayEquals(tels, contact.getPhones().toArray()); /* @@@ -101,8 -78,9 +78,9 @@@ * a warning, since the ISO 19115:2003 methods cannot represent SMS numbers. */ assertSame(tel2, contact.getPhone()); // Shall ignore the TelephoneType.SMS. - assertEquals("IgnoredPropertyAssociatedTo_1", resourceKey); - assertArrayEquals(new String[] {"SMS"}, parameters); + final LogRecord warning = assertOneWarning(); + assertEquals("IgnoredPropertyAssociatedTo_1", warning.getMessage()); - assertArrayEquals(new String[] {"TelephoneType.SMS"}, warning.getParameters()); ++ assertArrayEquals(new String[] {"SMS"}, warning.getParameters()); verifyLegacyLists(tels); } @@@ -172,9 -151,11 +149,11 @@@ contact.setPhone(view); verifyLegacyLists(view); assertArrayEquals(new DefaultTelephone[] { - new DefaultTelephone("00.02", TelephoneType.VOICE), - new DefaultTelephone("00.04", TelephoneType.VOICE), - new DefaultTelephone("00.03", TelephoneType.FACSIMILE) + new DefaultTelephone("00.02", UnsupportedCodeList.VOICE), + new DefaultTelephone("00.04", UnsupportedCodeList.VOICE), + new DefaultTelephone("00.03", UnsupportedCodeList.FACSIMILE) }, contact.getPhones().toArray()); + + assertNoWarning(); } } diff --cc endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/iso/identification/DefaultServiceIdentificationTest.java index 636a6cb9a0,68bb57d992..893ca56574 --- a/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/iso/identification/DefaultServiceIdentificationTest.java +++ b/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/iso/identification/DefaultServiceIdentificationTest.java @@@ -87,9 -92,9 +87,9 @@@ public final class DefaultServiceIdenti assertEquals("Web Map Server", String.valueOf(id.getServiceType())); assertEquals("A dummy service for testing purpose.", String.valueOf(id.getAbstract())); assertEquals(NilReason.MISSING, NilReason.forObject(id.getCitation())); - assertEquals(UnsupportedCodeList.valueOf("loose"), id.getCouplingType()); - assertEquals(CouplingType.LOOSE, id.getCouplingType()); ++ assertEquals(UnsupportedCodeList.valueOf("LOOSE"), id.getCouplingType()); - final CoupledResource resource = assertSingleton(id.getCoupledResources()); + final DefaultCoupledResource resource = assertSingleton(id.getCoupledResources()); // assertEquals("scopedName", "mySpace:ABC-123", …) skipped because not present in new ISO 19115-3:2016. // assertEquals("resourceReference", "WMS specification", …) skipped because not present in legacy ISO 19139:2007. diff --cc endorsed/src/org.apache.sis.metadata/test/org/apache/sis/xml/ReferenceResolverTest.java index 2e4ba56548,041d7467fa..d779a0c06c --- a/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/xml/ReferenceResolverTest.java +++ b/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/xml/ReferenceResolverTest.java @@@ -155,11 -138,12 +138,12 @@@ public final class ReferenceResolverTes /* * The fragment should reference the exact same object as the one in the citation. */ - final var parent = assertSingleton(citation.getCitedResponsibleParties().iterator().next().getParties()); - final var reusing = assertSingleton(assertSingleton(data.getPointOfContacts()).getParties()); - assertEquals("Little John", reusing.getName().toString()); - assertSame(assertSingleton(parent .getContactInfo()), - assertSingleton(reusing.getContactInfo())); + final var parent = citation.getCitedResponsibleParties().iterator().next(); + final var reusing = assertSingleton(data.getPointOfContacts()); + assertEquals("Little John", reusing.getIndividualName()); + assertSame(parent .getContactInfo(), + reusing.getContactInfo()); + assertNoWarning(); } }
