This is an automated email from the ASF dual-hosted git repository. asf-gitbox-commits pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
commit 55123288780e893b841485ea7d7240e85ece45bd Author: Martin Desruisseaux <[email protected]> AuthorDate: Thu Jul 30 17:04:33 2026 +0200 Minor formatting of comments. --- endorsed/src/org.apache.sis.feature/main/module-info.java | 4 ++-- .../main/org/apache/sis/coverage/grid/GridCoverageBuilder.java | 2 +- .../main/org/apache/sis/coverage/grid/GridExtent.java | 7 +++++-- .../main/org/apache/sis/coverage/grid/GridGeometry.java | 4 ++-- .../test/org/apache/sis/metadata/HashCodeTest.java | 1 - endorsed/src/org.apache.sis.util/main/module-info.java | 2 +- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/endorsed/src/org.apache.sis.feature/main/module-info.java b/endorsed/src/org.apache.sis.feature/main/module-info.java index a806a1e174..4a97cb81b5 100644 --- a/endorsed/src/org.apache.sis.feature/main/module-info.java +++ b/endorsed/src/org.apache.sis.feature/main/module-info.java @@ -68,7 +68,7 @@ module org.apache.sis.feature { org.apache.sis.storage.sql, org.apache.sis.storage.netcdf, org.apache.sis.storage.shapefile, // In the "incubator" sub-project. - org.apache.sis.referencing.dggs, // In the "incubator" sub-project. + org.apache.sis.referencing.dggs, // In the "incubator" sub-project. org.apache.sis.storage.gdal, // In the "optional" sub-project. org.apache.sis.portrayal, org.apache.sis.portrayal.map, // In the "incubator" sub-project. @@ -83,7 +83,7 @@ module org.apache.sis.feature { org.apache.sis.storage.gdal, // In the "optional" sub-project. org.apache.sis.storage.shapefile, // In the "incubator" sub-project. org.apache.sis.portrayal.map, // In the "incubator" sub-project. - org.apache.sis.referencing.dggs, // In the "incubator" sub-project. + org.apache.sis.referencing.dggs, // In the "incubator" sub-project. org.apache.sis.cql; // In the "incubator" sub-project. exports org.apache.sis.geometry.wrapper.j2d to diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoverageBuilder.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoverageBuilder.java index 0c6d5a0de1..67f59f1d3c 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoverageBuilder.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoverageBuilder.java @@ -212,7 +212,7 @@ public class GridCoverageBuilder { private long flippedAxes; /** - * The properties to give to the image, or {@code null} if none. + * The properties to give to the image. * * @see #addImageProperty(String, Object) */ diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridExtent.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridExtent.java index 80ea706435..ddafb8bddd 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridExtent.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridExtent.java @@ -959,10 +959,11 @@ public class GridExtent implements GridEnvelope, LenientComparable, Serializable * * @return number of lattice points contained inside this grid extent. * @throws ArithmeticException if the count is too large for the {@code long} primitive type. - * @see #latticePointStream(boolean). + * + * @see #latticePointStream(boolean) * @since 1.7 */ - public long getLatticePointCount() throws ArithmeticException{ + public long getLatticePointCount() { final int dimension = getDimension(); if (dimension == 0) return 0; long n = getSize(0); @@ -2275,6 +2276,8 @@ public class GridExtent implements GridEnvelope, LenientComparable, Serializable * * @param parallel whether to return a parallel stream. * @return stream of lattice points inside this grid extent. + * + * @see #getLatticePointCount() * @since 1.7 */ public Stream<long[]> latticePointStream(final boolean parallel) { diff --git 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 index cc19710e4a..ea6475b2ce 100644 --- 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 @@ -1749,7 +1749,7 @@ public class GridGeometry implements LenientComparable, Serializable { if (t1 != null || t2 != null) { boolean isZero = true; final double[] vector = new double[getDimension()]; - for (int i=Math.min(vector.length, translation.length); --i >= 0;) { + for (int i = Math.min(vector.length, translation.length); --i >= 0;) { isZero &= (translation[i] == 0); double v = translation[i]; vector[i] = negate ? v : -v; // Really negate if `negate` is false. @@ -1786,7 +1786,7 @@ public class GridGeometry implements LenientComparable, Serializable { * The "grid to CRS" transforms and the resolution stay the same as this {@code GridGeometry}. * The "real world" envelope is recomputed for the new grid extent using the "grid to CRS" transforms. * - * <p>The given extent is taken verbatim; this method does no clipping. + * <p>The given extent is taken verbatim, this method does no clipping. * The given extent does not need to intersect the extent of this grid geometry.</p> * * @param newExtent extent of the grid geometry to return. diff --git a/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/HashCodeTest.java b/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/HashCodeTest.java index 44ceb944e0..5d752a73b8 100644 --- a/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/HashCodeTest.java +++ b/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/metadata/HashCodeTest.java @@ -47,7 +47,6 @@ import org.apache.sis.metadata.iso.citation.DefaultResponsibility; * Tests the {@link HashCode} class. This is also used as a relatively simple {@link MetadataVisitor} test. * The entry point is the {@link HashCode#walk(MetadataStandard, Class, Object, boolean)} method. * - * * @author Martin Desruisseaux (Geomatys) */ @SuppressWarnings("exports") diff --git a/endorsed/src/org.apache.sis.util/main/module-info.java b/endorsed/src/org.apache.sis.util/main/module-info.java index 9eb69c8cc8..d53036c1a1 100644 --- a/endorsed/src/org.apache.sis.util/main/module-info.java +++ b/endorsed/src/org.apache.sis.util/main/module-info.java @@ -137,7 +137,7 @@ module org.apache.sis.util { org.apache.sis.storage.earthobservation, org.apache.sis.cql, // In the "incubator" sub-project. org.apache.sis.portrayal, - org.apache.sis.referencing.dggs, + org.apache.sis.referencing.dggs, // In the "incubator" sub-project. org.apache.sis.storage.gdal, // In the "optional" sub-project. org.apache.sis.cloud.aws, org.apache.sis.console,
