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 8b3950218228b871d6c085f8ed70661099dfd5e0 Author: Martin Desruisseaux <[email protected]> AuthorDate: Sun Apr 12 15:53:27 2026 +0200 Spelling fixes. --- .../org/apache/sis/coverage/grid/ClippedGridCoverage.java | 2 +- .../apache/sis/coverage/grid/GridCoverageProcessor.java | 2 +- .../main/org/apache/sis/coverage/grid/GridDerivation.java | 4 ++-- .../main/org/apache/sis/coverage/grid/GridExtent.java | 2 +- .../main/org/apache/sis/coverage/grid/GridGeometry.java | 2 +- .../apache/sis/coverage/grid/ValuesAtPointIterator.java | 4 ++-- .../main/org/apache/sis/feature/AbstractFeature.java | 2 +- .../sis/feature/internal/shared/FeatureProjection.java | 2 +- .../main/org/apache/sis/filter/IdentifierFilter.java | 2 +- .../main/org/apache/sis/image/ImageLayout.java | 8 ++++---- .../apache/sis/image/internal/shared/ObservableImage.java | 2 +- .../org/apache/sis/metadata/iso/citation/Citations.java | 2 +- .../main/org/apache/sis/temporal/DefaultInstant.java | 2 +- .../apache/sis/xml/internal/shared/InputFactoryTest.java | 4 ++-- .../apache/sis/referencing/MultiRegisterOperations.java | 2 +- .../main/org/apache/sis/referencing/cs/AxesConvention.java | 2 +- .../apache/sis/referencing/factory/sql/EPSGDataAccess.java | 6 +++--- .../internal/ParameterizedTransformBuilder.java | 2 +- .../referencing/internal/shared/ReferencingUtilities.java | 2 +- .../referencing/operation/CoordinateOperationRegistry.java | 2 +- .../apache/sis/referencing/operation/SubOperationInfo.java | 2 +- .../operation/transform/ConcatenatedTransform.java | 2 +- .../operation/transform/EllipsoidToCentricTransform.java | 2 +- .../operation/transform/MathTransformProvider.java | 2 +- .../referencing/operation/transform/TransformJoiner.java | 2 +- .../org/apache/sis/storage/geotiff/writer/GeoEncoder.java | 2 +- .../apache/sis/storage/AbstractGridCoverageResource.java | 4 ++-- .../main/org/apache/sis/storage/FeatureQuery.java | 2 +- .../main/org/apache/sis/storage/URLDataSource.java | 6 +++--- .../main/org/apache/sis/storage/tiling/ImagePyramid.java | 2 +- .../org/apache/sis/storage/tiling/ImageTileMatrix.java | 4 ++-- .../main/org/apache/sis/storage/tiling/TileMatrix.java | 2 +- .../main/org/apache/sis/measure/AbstractConverter.java | 2 +- .../main/org/apache/sis/measure/ConcatenatedConverter.java | 2 +- .../main/org/apache/sis/measure/LinearConverter.java | 2 +- .../main/org/apache/sis/util/internal/shared/Numerics.java | 2 +- .../main/org/apache/sis/geometries/Geometries.java | 12 ++++++------ .../main/org/apache/sis/geometries/Geometry.java | 2 +- .../main/org/apache/sis/geometries/PreparedTIN.java | 4 ++-- .../sis/geometries/internal/shared/ArraySequence.java | 2 +- .../org/apache/sis/geometries/math/AbstractMatrix.java | 2 +- .../main/org/apache/sis/geometries/math/Maths.java | 2 +- .../main/org/apache/sis/geometries/math/MatrixND.java | 2 +- .../main/org/apache/sis/geometries/math/ReadOnly.java | 2 +- .../main/org/apache/sis/geometries/math/Transform.java | 14 +++++++------- .../sis/geometries/operation/GeometryOperations.java | 4 ++-- .../operation/simplify/greedyinsert/TINBuilder.java | 2 +- .../geometries/operation/spatialanalysis2d/ISOLine.java | 4 ++-- .../operation/triangulate/delaunay/Delaunay.java | 4 ++-- .../apache/sis/geometries/processor/ProcessorUtils.java | 4 ++-- .../org/apache/sis/storage/geoheif/ResourceBuilder.java | 2 +- .../org/apache/sis/storage/geopackage/Initializer.java | 4 ++-- .../main/org/apache/sis/gui/map/EvanescentPane.java | 4 ++-- .../main/org/apache/sis/gui/map/MapCanvas.java | 6 +++--- .../org/apache/sis/gui/referencing/AuthorityCodes.java | 2 +- .../main/org/apache/sis/gui/setup/Wizard.java | 4 ++-- .../main/org/apache/sis/storage/gdal/FeatureIterator.java | 2 +- 57 files changed, 90 insertions(+), 90 deletions(-) diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/ClippedGridCoverage.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/ClippedGridCoverage.java index 0546cd204b..8d122f7690 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/ClippedGridCoverage.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/ClippedGridCoverage.java @@ -114,7 +114,7 @@ final class ClippedGridCoverage extends DerivedGridCoverage { /* * After `render(…)` execution, the (minX, minY) image coordinates are the differences * between the extent that we requested and what we got. If the clipped extent that we - * specified in above method call has an origin different than the user-supplied extent, + * specified in above method call has an origin different than the user supplied extent, * we need to adjust. */ if (clipped != sliceExtent) { // Slight optimization for a common case. diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoverageProcessor.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoverageProcessor.java index 3b746930a9..4bf9c54e72 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoverageProcessor.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoverageProcessor.java @@ -498,7 +498,7 @@ public class GridCoverageProcessor implements Cloneable { /** * Returns the intersection of the given coverage with the given extent. - * The extent shall have the same number of dimensions than the coverage. + * The extent shall have the same number of dimensions as the coverage. * The "grid to <abbr>CRS</abbr>" transform is unchanged. * * <p>This method is useful for taking a slice of a multi-dimensional grid. diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridDerivation.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridDerivation.java index 8baa7b22f7..2f1f394eda 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridDerivation.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridDerivation.java @@ -576,7 +576,7 @@ public class GridDerivation { } else { /* * Get the transform from the grid of `areaOfInterest` to the base grid. - * There is two variants, depending on whether the user wants tight box: + * There are two variants, depending on whether the user wants tight box: * * - Default: map pixel corners with exclusive upper grid coordinate value. * - Tight box: map pixel centers with inclusive upper grid coordinate value. @@ -952,7 +952,7 @@ public class GridDerivation { /** * Requests a grid geometry over a sub-region of the base grid geometry and optionally with subsampling. - * The given grid geometry must have the same number of dimensions than the base grid geometry. + * The given grid geometry must have the same number of dimensions as the base grid geometry. * If the length of {@code subsampling} array is less than the number of dimensions, * then no subsampling will be applied on the missing dimensions. * 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 e7c887de45..1fa56bce8e 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 @@ -1650,7 +1650,7 @@ public class GridExtent implements GridEnvelope, LenientComparable, Serializable } /** - * Returns an extent with the same number of dimensions and the same axes than this extent, + * Returns an extent with the same number of dimensions and the same axes as this extent, * but different coordinate values. * * @param low the valid minimum grid coordinates (always inclusive), or {@code null} for all zeros. 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 ad64df989b..c47e30cf16 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 @@ -642,7 +642,7 @@ public class GridGeometry implements LenientComparable, Serializable { * Ignored (can be null) if {@code envelope} is null. * @throws NullPointerException if {@code extent} and {@code envelope} arguments are both null, * or if {@code envelope} is non-null but {@code orientation} is null. - * @throws MismatchedDimensionException if the envelope does not have the same number of dimensions than the grid extent. + * @throws MismatchedDimensionException if the envelope does not have the same number of dimensions as the grid extent. * * @see <a href="https://en.wikipedia.org/wiki/Axis-aligned_object">Axis-aligned object on Wikipedia</a> * diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/ValuesAtPointIterator.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/ValuesAtPointIterator.java index fc3aeb1c66..2ba4da2f7d 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/ValuesAtPointIterator.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/ValuesAtPointIterator.java @@ -112,7 +112,7 @@ abstract class ValuesAtPointIterator implements Spliterator<double[]> { /** * Creates a new iterator with the given grid coordinates. The {@code gridCoords} array is the result - * of applying the inverse of the "grid to CRS" transform on user-supplied "real world" coordinates, + * of applying the inverse of the "grid to CRS" transform on user supplied "real world" coordinates, * then resolving wraparounds. This constructor rounds these grid coordinates to nearest integers. * * @param coverage the coverage which will be evaluated. @@ -389,7 +389,7 @@ abstract class ValuesAtPointIterator implements Spliterator<double[]> { /** * Creates a new iterator with the given grid coordinates. The {@code gridCoords} array is the result - * of applying the inverse of the "grid to CRS" transform on user-supplied "real world" coordinates, + * of applying the inverse of the "grid to CRS" transform on user supplied "real world" coordinates, * then resolving wraparounds. This constructor rounds these grid coordinates to nearest integers. * * @todo Retrofit in above constructor after RFE #4093999. diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/AbstractFeature.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/AbstractFeature.java index be24226f52..ce4087ebc5 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/AbstractFeature.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/AbstractFeature.java @@ -714,7 +714,7 @@ public abstract class AbstractFeature implements Feature, Serializable { * Returns the exception message for a property not found. The message will differ depending * on whether the property is not found because ambiguous or because it does not exist. * - * @param feature the the feature where a property where searched. + * @param feature the feature where a property where searched. * @param property the name of the property which has not been found. */ static String propertyNotFound(final FeatureType feature, final String property) { diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/internal/shared/FeatureProjection.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/internal/shared/FeatureProjection.java index a5910ec0da..209e94b472 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/internal/shared/FeatureProjection.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/internal/shared/FeatureProjection.java @@ -443,7 +443,7 @@ public final class FeatureProjection extends Record implements UnaryOperator<Fea private static final class Row { /** * Returns a string representation of the {@link FeatureProjection} having the given values. - * Having this method in a separated class reduces the amount of classes loading, since this + * Having this method in a separated class reduces the number of classes loading, since this * {@code Row} class is rarely needed in production environment. * * @param projection the projection for which to format a string representation. diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/IdentifierFilter.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/IdentifierFilter.java index 817d61d711..61af4ee1f5 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/IdentifierFilter.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/IdentifierFilter.java @@ -68,7 +68,7 @@ final class IdentifierFilter extends Node } /** - * Creates a new filter searching for the same identifier than the original filter, + * Creates a new filter searching for the same identifier as the original filter, * but looking in a different property. */ private IdentifierFilter(final IdentifierFilter original, final String property) { diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/ImageLayout.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/ImageLayout.java index 3871542240..9173a75919 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/ImageLayout.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/ImageLayout.java @@ -227,7 +227,7 @@ public class ImageLayout { } /** - * Returns a new layout with the same properties than this layout except for the sample model. + * Returns a new layout with the same properties as this layout except for the sample model. * If the given argument value results in no change, returns {@code this}. * * @param model the new sample model, or {@code null} if none. @@ -253,7 +253,7 @@ public class ImageLayout { } /** - * Returns a new layout with the same properties than this layout except whether it allows changes of tile size. + * Returns a new layout with the same properties as this layout except whether it allows changes of tile size. * If the given argument value results in no change, returns {@code this}. * * @param allowed whether to allow changes of tile size when needed. @@ -274,7 +274,7 @@ public class ImageLayout { } /** - * Returns a new layout with the same properties than this layout except whether it allows changes of image size. + * Returns a new layout with the same properties as this layout except whether it allows changes of image size. * If the given argument value results in no change, returns {@code this}. * * @param allowed whether to allow changes of image size when needed. @@ -295,7 +295,7 @@ public class ImageLayout { } /** - * Returns a new layout with the same properties than this layout except whether it allows partially filled tiles. + * Returns a new layout with the same properties as this layout except whether it allows partially filled tiles. * If the given argument value results in no change, returns {@code this}. * * @param allowed whether to allow tiles that are only partially filled in the last row and last column of the tile matrix. diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ObservableImage.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ObservableImage.java index 13192e2b3f..9c05fb389a 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ObservableImage.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ObservableImage.java @@ -30,7 +30,7 @@ import org.apache.sis.util.ArraysExt; /** - * A buffered image which can notify tile observers when tile are acquired for write operations. + * A buffered image which cannotify tile observers when tile are acquired for write operations. * Provides also helper methods for {@link WritableRenderedImage} implementations. * * <p>This class should be used in preference to {@link BufferedImage} when the image may be the diff --git a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/citation/Citations.java b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/citation/Citations.java index 294b0e773e..72f36fba33 100644 --- a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/citation/Citations.java +++ b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/citation/Citations.java @@ -339,7 +339,7 @@ public final class Citations { public static final IdentifierSpace<String> NETCDF = new CitationConstant.Authority<>(Constants.NETCDF); /** - * The authority for identifiers of objects defined by the the GeoTIFF specification. + * The authority for identifiers of objects defined by the GeoTIFF specification. * This specification identifies some map projections by their own numerical codes. * * <h4>Main usage</h4> diff --git a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/temporal/DefaultInstant.java b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/temporal/DefaultInstant.java index 1392f0b8e2..a195a9095c 100644 --- a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/temporal/DefaultInstant.java +++ b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/temporal/DefaultInstant.java @@ -236,7 +236,7 @@ cmp: if (canTestBefore | canTestAfter | canTestEqual) { /* * First, resolve the case when the indeterminate value is "now". Do not invoke `getPosition()` * because the results could differ by a few nanoseconds when two "now" instants are compared, - * and also for getting a temporal object of the same type than the other instant. + * and also for getting a temporal object of the same type as the other instant. */ if (oip == IndeterminateValue.NOW) { t1 = position; diff --git a/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/xml/internal/shared/InputFactoryTest.java b/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/xml/internal/shared/InputFactoryTest.java index c6bfa7030f..fecdc86aa1 100644 --- a/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/xml/internal/shared/InputFactoryTest.java +++ b/endorsed/src/org.apache.sis.metadata/test/org/apache/sis/xml/internal/shared/InputFactoryTest.java @@ -66,7 +66,7 @@ public final class InputFactoryTest extends TestCase { * @throws XMLStreamException if an error occurred while parsing the <abbr>XML</abbr>. */ @Test - @Disabled("JAXP09020006") // NullPointerException: argument 'catalog' can not be NULL. TODO: test with Maven4. + @Disabled("JAXP09020006") // NullPointerException: argument 'catalog' cannot be NULL. TODO: test with Maven4. public void verifyExternalEntityAccess() throws IOException, XMLStreamException { final XMLInputFactory factory = XMLInputFactory.newInstance(); assumeTrue("all".equals(factory.getProperty(XMLConstants.ACCESS_EXTERNAL_DTD))); @@ -110,7 +110,7 @@ public final class InputFactoryTest extends TestCase { * @throws IOException if an error occurred while writing the test file. */ @Test - @Disabled("JAXP09020006") // NullPointerException: argument 'catalog' can not be NULL. TODO: test with Maven4. + @Disabled("JAXP09020006") // NullPointerException: argument 'catalog' cannot be NULL. TODO: test with Maven4. public void testDisableAccessExternalDTD() throws IOException { final XMLInputFactory factory = XMLInputFactory.newInstance(); factory.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, "http,https"); diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/MultiRegisterOperations.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/MultiRegisterOperations.java index fbab73afa0..ed659f8d4a 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/MultiRegisterOperations.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/MultiRegisterOperations.java @@ -160,7 +160,7 @@ public class MultiRegisterOperations extends AbstractFactory implements Register } /** - * Creates an instance with the same register than the given instance, but a different <abbr>AOI</abbr>. + * Creates an instance with the same register as the given instance, but a different <abbr>AOI</abbr>. * * @param source the register from which to copy the authority and version. * @param areaOfInterest the new area of interest (<abbr>AOI</abbr>), or {@code null} if none. diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/cs/AxesConvention.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/cs/AxesConvention.java index ce1ff0569d..65d113bf9d 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/cs/AxesConvention.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/cs/AxesConvention.java @@ -78,7 +78,7 @@ import org.apache.sis.measure.Units; * * <h2>Note on enumeration order</h2> * The enumeration values are sorted from most conservative to most aggressive. - * The fist enumeration values make no change or change only the range of values. + * The first enumeration values make no change or change only the range of values. * Next enumeration values may change axis order but not the units of measurement. * The last enumeration values may change both axis order an units of measurement. * diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java index 29184c1e01..172b10d088 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java @@ -924,7 +924,7 @@ public class EPSGDataAccess extends GeodeticAuthorityFactory implements CRSAutho * <p>This method is invoked for queries that <em>may</em> cause the same table to be queried again. * For example, creating a projected <abbr>CRS</abbr> from the "Coordinate Reference System" table * may imply creating a base geographic <abbr>CRS</abbr> from the same table, reusing the statement. - * If there is two enclosed queries on the same table, the older {@link ResultSet} will be closed. + * If there are two enclosed queries on the same table, the older {@link ResultSet} will be closed. * Therefore:</p> * * <ul> @@ -3204,7 +3204,7 @@ search: try (ResultSet result = executeMetadataQuery("Deprecation", } /** - * Returns an operation method with the same metadata than the given method, + * Returns an operation method with the same metadata as the given method, * but with the descriptors of the parameters in the given list. * Those parameter descriptors should be the same as the parameters of the given method. * But sometime, the parameters differ in units of measurement or in sign reversal flag. @@ -3284,7 +3284,7 @@ search: try (ResultSet result = executeMetadataQuery("Deprecation", /** * Creates the parameters descriptors and their values for all parameters of the given operation. - * The descriptors are created in same time than their values because some descriptor metadata, + * The descriptors are created in same time as their values because some descriptor metadata, * such as units of measurement and aliases, may differ for different operations. * * @param operation the EPSG code for the operation (conversion or transformation). diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/internal/ParameterizedTransformBuilder.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/internal/ParameterizedTransformBuilder.java index f1e10498d5..68f4d7c600 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/internal/ParameterizedTransformBuilder.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/internal/ParameterizedTransformBuilder.java @@ -411,7 +411,7 @@ public class ParameterizedTransformBuilder extends MathTransformBuilder implemen * Returns the parameter values used for the math transform creation, * including the parameters completed by the factory. * This is the union of {@link #parameters()} with {@link #getContextualParameters()}. - * The completed parameters may only have additional parameters compared to the user-supplied parameters. + * The completed parameters may only have additional parameters compared to the user supplied parameters. * {@linkplain #parameters() Parameter} values that were explicitly set by the user are not overwritten. * * <p>After this method has been invoked, the {@link #setSourceAxes setSourceAxes(…)} diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/internal/shared/ReferencingUtilities.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/internal/shared/ReferencingUtilities.java index 734af0a2a6..ca414ebb1f 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/internal/shared/ReferencingUtilities.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/internal/shared/ReferencingUtilities.java @@ -458,7 +458,7 @@ public final class ReferencingUtilities { * {@linkplain Identifier#getCode() code} replaced by the given value. * * <p><b>Examples:</b> this method can be used for creating the parameters of an inverse operation - * in the common case where the inverse has the same parameters than the forward operation.</p> + * in the common case where the inverse has the same parameters as the forward operation.</p> * * @param parameters the parameter group to rename, or {@code null}. * @param code the new name of the group, in the same code space as the given parameters. diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/CoordinateOperationRegistry.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/CoordinateOperationRegistry.java index c3f05e75e7..d84eb81c72 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/CoordinateOperationRegistry.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/CoordinateOperationRegistry.java @@ -167,7 +167,7 @@ class CoordinateOperationRegistry { } /** - * Returns whether the given identifier is one of the pre-defined values used for datum changes. + * Returns whether the given identifier is one of the predefined values used for datum changes. * * @see CoordinateOperationFinder#canHide(Identifier) */ diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/SubOperationInfo.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/SubOperationInfo.java index 1e85a2f4df..3fb21d253b 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/SubOperationInfo.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/SubOperationInfo.java @@ -479,7 +479,7 @@ otherRow: for (int j = last.getNumRow() - 1; --j >= 0;) { // Ignor } /** - * Whether the operation result depends on the values of the user-supplied {@link CoordinateOperationContext}. + * Whether the operation result depends on the values of the user supplied {@link CoordinateOperationContext}. * This flag shall be {@code true} if the operation depends on parameters that may vary between two executions. */ final boolean resultWasContextSensitive() { diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/ConcatenatedTransform.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/ConcatenatedTransform.java index c3a3279cce..b1680013c1 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/ConcatenatedTransform.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/ConcatenatedTransform.java @@ -227,7 +227,7 @@ class ConcatenatedTransform extends AbstractMathTransform implements Serializabl } } /* - * Thank to above expansion, we can now see when there is two consecutive linear transforms or when a + * Thank to above expansion, we can now see when there are two consecutive linear transforms or when a * transform is immediately followed by its inverse. The non-expanded `ConcatenatedTransform` instances * were already analyzed in a previous call of this method and do not need to be analyzed again. */ diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/EllipsoidToCentricTransform.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/EllipsoidToCentricTransform.java index 59434e9254..5893e81a17 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/EllipsoidToCentricTransform.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/EllipsoidToCentricTransform.java @@ -829,7 +829,7 @@ public class EllipsoidToCentricTransform extends AbstractMathTransform implement (p - eccentricitySquared * (sqrt(cos2q) * cos2q))); /* * The above is an approximation of φ. Usually, we are done with a good approximation for a planet - * of the same as eccentricity than Earth. Code below will be executed in a minority of cases when + * of the same as eccentricity as Earth. Code below will be executed in a minority of cases when * the value of φ needs to be improved. It will also be executed if the value of h is requested, * because in such case we also need the value of ν. */ diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/MathTransformProvider.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/MathTransformProvider.java index 2523675f2c..bb7d4ce36c 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/MathTransformProvider.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/MathTransformProvider.java @@ -274,7 +274,7 @@ public interface MathTransformProvider { * by the user to the same value as what would have been inferred from the context. * OTherwise (i.e., if there is a mismatch between inferred and user-defined value), * the Boolean is {@code FALSE}, a warning should be logged by the implementation, - * and the user-supplied value should have precedence in the parameters returned by + * and the user supplied value should have precedence in the parameters returned by * {@link #getCompletedParameters()}. * * @return names of parameters inferred from context. diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/TransformJoiner.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/TransformJoiner.java index b4562242a4..adb52cca6b 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/TransformJoiner.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/TransformJoiner.java @@ -423,7 +423,7 @@ valid: if (i >= 0 && i < steps.size()) { * Tries to replace a <var>forward</var> → <var>middle</var> → <var>inverse</var> chain by a new transform. * The transform that determines whether a replacement is possible is the <var>middle</var> transform, * and its relative index is given by the {@code middle} argument in this method. - * There is two main scenarios: + * There are two main scenarios: * * <ul> * <li>If {@code middle} is +1, then <var>forward</var> is the transform at relative index 0 diff --git a/endorsed/src/org.apache.sis.storage.geotiff/main/org/apache/sis/storage/geotiff/writer/GeoEncoder.java b/endorsed/src/org.apache.sis.storage.geotiff/main/org/apache/sis/storage/geotiff/writer/GeoEncoder.java index 3775b72cd9..e13ced791d 100644 --- a/endorsed/src/org.apache.sis.storage.geotiff/main/org/apache/sis/storage/geotiff/writer/GeoEncoder.java +++ b/endorsed/src/org.apache.sis.storage.geotiff/main/org/apache/sis/storage/geotiff/writer/GeoEncoder.java @@ -306,7 +306,7 @@ public final class GeoEncoder { } /* * Write the horizontal component of the CRS. We need to take the CRS - * at the same dimensions than the ones selected for the `gridToCRS`. + * at the same dimensions as the ones selected for the `gridToCRS`. */ if (!grid.isDefined(GridGeometry.CRS)) { writeModelType(GeoCodes.undefined); diff --git a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/AbstractGridCoverageResource.java b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/AbstractGridCoverageResource.java index 6964b51d2d..749208b422 100644 --- a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/AbstractGridCoverageResource.java +++ b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/AbstractGridCoverageResource.java @@ -165,8 +165,8 @@ public abstract class AbstractGridCoverageResource extends AbstractResource impl CoordinateOperation op = lastOperation; if (op == null || !domain.getCoordinateReferenceSystem().equals(op.getSourceCRS())) { /* - * The resolution in the user-supplied domain is associated to a CRS different than the CRS - * of the last resolution that we computed. We must update the operation from user-supplied + * The resolution in the user supplied domain is associated to a CRS different than the CRS + * of the last resolution that we computed. We must update the operation from user supplied * resolution to the units of this grid coverage. */ final GridGeometry targetGrid = getGridGeometry(); diff --git a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/FeatureQuery.java b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/FeatureQuery.java index 71cb2dc9ba..b780a79674 100644 --- a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/FeatureQuery.java +++ b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/FeatureQuery.java @@ -167,7 +167,7 @@ public class FeatureQuery extends Query implements Cloneable, Emptiable, Seriali } /** - * Creates a new query initialized to the same values than the given query. + * Creates a new query initialized to the same values as the given query. * This is an alternative to the {@link #clone()} method when the caller * wants to change the implementation class. * diff --git a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/URLDataSource.java b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/URLDataSource.java index 585efdc40c..e8005a2859 100644 --- a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/URLDataSource.java +++ b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/URLDataSource.java @@ -49,7 +49,7 @@ final class URLDataSource implements DataSource { /** * The URL to use for connecting to the database. - * This field can not be {@code null}. + * This field cannot be {@code null}. */ private final String url; @@ -90,7 +90,7 @@ final class URLDataSource implements DataSource { /** * Delegates to {@link DriverManager}. * - * @throws SQLException If the connection can not be established. + * @throws SQLException If the connection cannot be established. */ @Override public Connection getConnection() throws SQLException { @@ -100,7 +100,7 @@ final class URLDataSource implements DataSource { /** * Delegates to {@link DriverManager}. * - * @throws SQLException If the connection can not be established. + * @throws SQLException If the connection cannot be established. */ @Override public Connection getConnection(String username, String password) throws SQLException { diff --git a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/ImagePyramid.java b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/ImagePyramid.java index 87f867e194..add5b5b2d8 100644 --- a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/ImagePyramid.java +++ b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/ImagePyramid.java @@ -181,7 +181,7 @@ final class ImagePyramid extends AbstractMap<GenericName, ImageTileMatrix> * The returned value is an index in the {@link #matrices} list. * * @param name identifier of the desired level. - * @param required whether to thrown an exception if the identifier is not recognized. + * @param required whether to throw an exception if the identifier is not recognized. * @return index of the desired level, or -1 if none and {@code required} is {@code false}. * @throws IllegalArgumentException if the given name is not recognized and {@code required} is {@code true}. */ diff --git a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/ImageTileMatrix.java b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/ImageTileMatrix.java index 0629472801..38d09e96e8 100644 --- a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/ImageTileMatrix.java +++ b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/ImageTileMatrix.java @@ -342,7 +342,7 @@ final class ImageTileMatrix implements TileMatrix { * @param indiceRanges ranges of tile indices in all dimensions, or {@code null} for all tiles. * @param parallel {@code true} for a parallel stream (if supported), or {@code false} for a sequential stream. * @return stream of tiles, excluding missing tiles. - * @throws DataStoreException if the tiles can not be fetched in the given ranges of tile indexes. + * @throws DataStoreException if the tiles cannot be fetched in the given ranges of tile indexes. */ @Override public Stream<Tile> getTiles(GridExtent indiceRanges, final boolean parallel) throws DataStoreException { @@ -362,7 +362,7 @@ final class ImageTileMatrix implements TileMatrix { * * @param indiceRanges ranges of tile indices in all dimensions, or {@code null} for all tiles. * @return a request which can be used for getting a tile or a stream of tiles in the given region. - * @throws DataStoreException if the tiles can not be fetched in the given ranges of tile indexes. + * @throws DataStoreException if the tiles cannot be fetched in the given ranges of tile indexes. * @throws ArithmeticException if coordinate computation exceeds the capacity of 64-bits integers. */ private synchronized IterationDomain<Tile> iterator(final GridExtent indiceRanges) throws DataStoreException { diff --git a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TileMatrix.java b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TileMatrix.java index 1ab18177a8..7112ba3919 100644 --- a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TileMatrix.java +++ b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TileMatrix.java @@ -227,7 +227,7 @@ public interface TileMatrix { * @param parallel {@code true} for a parallel stream (if supported), or {@code false} for a sequential stream. * @return stream of tiles, excluding {@linkplain TileStatus#MISSING missing} tiles. * Iteration order of the stream may vary from one implementation to another and from one call to another. - * @throws DataStoreException if the tiles can not be fetched in the given ranges of tile indexes. + * @throws DataStoreException if the tiles cannot be fetched in the given ranges of tile indexes. */ Stream<Tile> getTiles(GridExtent indiceRanges, boolean parallel) throws DataStoreException; } diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/AbstractConverter.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/AbstractConverter.java index 6388d5ed23..d8d0ce4eb9 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/AbstractConverter.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/AbstractConverter.java @@ -71,7 +71,7 @@ public abstract class AbstractConverter implements UnitConverter, Serializable { * * @return whether this converter contains an offset. * - * @deprecated This method is badly named, but we can't change since it is defined by JSR-385. + * @deprecated This method is badly named, but we cannot change since it is defined by JSR-385. */ @Override @Deprecated diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/ConcatenatedConverter.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/ConcatenatedConverter.java index da96d580ea..e7d1391857 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/ConcatenatedConverter.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/ConcatenatedConverter.java @@ -75,7 +75,7 @@ final class ConcatenatedConverter extends AbstractConverter implements LenientCo * Returns {@code true} if the two unit converters are linear converters. * Should always be {@code false}, otherwise we would not have created a {@code ConcatenatedConverter}. * - * @deprecated This method is badly named, but we can't change since it is defined by JSR-385. + * @deprecated This method is badly named, but we cannot change since it is defined by JSR-385. */ @Override @Deprecated diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/LinearConverter.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/LinearConverter.java index dd8fd055d4..75bba24af7 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/LinearConverter.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/LinearConverter.java @@ -195,7 +195,7 @@ final class LinearConverter extends AbstractConverter implements LenientComparab * Note that this definition allows scale factors but does not allow offsets. * Consequently, this is a different definition of "linear" than this class and the rest of Apache SIS. * - * @deprecated This method is badly named, but we can't change since it is defined by JSR-385. + * @deprecated This method is badly named, but we cannot change since it is defined by JSR-385. */ @Override @Deprecated diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/internal/shared/Numerics.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/internal/shared/Numerics.java index 4062f1de00..3a03b0fe2f 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/internal/shared/Numerics.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/internal/shared/Numerics.java @@ -620,7 +620,7 @@ public final class Numerics { break; } } - // Arbitrarily add 6 digits the the difference between values. + // Arbitrarily add 6 digits the difference between values. return min(fractionDigitsForDelta(ulp), fractionDigitsForDelta(delta) + 6); } diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/Geometries.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/Geometries.java index 4a7aea836b..44935dfb4a 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/Geometries.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/Geometries.java @@ -125,7 +125,7 @@ public final class Geometries { public static final CoordinateReferenceSystem PSEUDOGEO_3D = createCartesianCRS3D(X_RIGHT, Y_FORWARD, Z_UP); /** - * Get an undefined CRS whic can not be converted to any other CRS. + * Get an undefined CRS whic cannot be converted to any other CRS. * @param nbDim CRS dimension * @return created CRS. */ @@ -172,7 +172,7 @@ public final class Geometries { /** * Constructs an axis with a name and an abbreviation as a resource bundle key. - * To be used for construction of pre-defined constants only. + * To be used for construction of predefined constants only. * * @param name The name. * @param abbreviation The {@linkplain #getAbbreviation abbreviation} used for this @@ -380,7 +380,7 @@ public final class Geometries { * Regroup all primitives as one. * Preserves all attributes. * - * Types which can not be concatenated : + * Types which cannot be concatenated : * - LINE_LOOP * - LINE_STRIP * - TRIANGLE_FAN @@ -442,9 +442,9 @@ public final class Geometries { switch (type) { case LINE_LOOP : case LINE_STRIP : - throw new IllegalArgumentException("Line Strip and Loop can not be concatenate, unlike triangles which can have a degenerated triangle to link them"); + throw new IllegalArgumentException("Line Strip and Loop cannot be concatenate, unlike triangles which can have a degenerated triangle to link them"); case TRIANGLE_FAN : - throw new IllegalArgumentException("Triangle fan can not be concatenate, unlike triangles which can have a degenerated triangle to link them"); + throw new IllegalArgumentException("Triangle fan cannot be concatenate, unlike triangles which can have a degenerated triangle to link them"); case TRIANGLE_STRIP : { //we must have even size trips otherwise next concatenated strip will have reversed winding if (idOffset % 2 != 0) { @@ -553,7 +553,7 @@ public final class Geometries { * * @param primitive Primitive to cut * @param maxSize maximum number of elements by primitive. - * @return splitted primitive. + * @return split primitive. */ public static List<MeshPrimitive> split(MeshPrimitive primitive, int maxSize) { if ( primitive.getPositions().getLength() <= maxSize diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/Geometry.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/Geometry.java index 7d1799eb47..27e171f062 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/Geometry.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/Geometry.java @@ -276,7 +276,7 @@ public interface Geometry extends TransfiniteSet { * Map of properties for user needs. * Those informations may be lost in geometry processes. * - * @return Map, can be null if the geometry can not store additional informations. + * @return Map, can be null if the geometry cannot store additional informations. */ default Map<String,Object> userProperties() { return null; diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/PreparedTIN.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/PreparedTIN.java index 7064707f7e..2ed3948a97 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/PreparedTIN.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/PreparedTIN.java @@ -136,7 +136,7 @@ public interface PreparedTIN extends TIN { @Override public void setCoordinateReferenceSystem(CoordinateReferenceSystem cs) throws IllegalArgumentException { - throw new IllegalArgumentException("CoordinateReferenceSystem can not be changed on PreparedTIN"); + throw new IllegalArgumentException("CoordinateReferenceSystem cannot be changed on PreparedTIN"); } @Override @@ -240,7 +240,7 @@ public interface PreparedTIN extends TIN { @Override public void setCoordinateReferenceSystem(CoordinateReferenceSystem cs) throws IllegalArgumentException { - throw new IllegalArgumentException("CoordinateReferenceSystem can not be changed on PreparedTIN"); + throw new IllegalArgumentException("CoordinateReferenceSystem cannot be changed on PreparedTIN"); } @Override diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/internal/shared/ArraySequence.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/internal/shared/ArraySequence.java index ebeed0c9df..a7ab7bd092 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/internal/shared/ArraySequence.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/internal/shared/ArraySequence.java @@ -109,7 +109,7 @@ public final class ArraySequence implements PointSequence, AttributesType { public void setAttribute(String name, Array array) { if (array == null) { if (AttributesType.ATT_POSITION.equals(name)) { - throw new IllegalArgumentException("Positions attribute can not be removed"); + throw new IllegalArgumentException("Positions attribute cannot be removed"); } attributes.remove(name); } else if (array.getLength() != size()) { diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/AbstractMatrix.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/AbstractMatrix.java index 1fbbf5a97c..b3082ff6b3 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/AbstractMatrix.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/AbstractMatrix.java @@ -486,7 +486,7 @@ abstract class AbstractMatrix<T extends AbstractMatrix<T>> extends SimplifiedTra public T invert(){ final double[][] inverse = Matrices.localInvert(toArray2Double(ROW_ORDER)); if (inverse == null){ - throw new IllegalArgumentException("Can not inverse"); + throw new IllegalArgumentException("Cannot inverse"); } set(inverse, ROW_ORDER); return (T) this; diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Maths.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Maths.java index e0c79ccd17..0c498ad323 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Maths.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Maths.java @@ -755,7 +755,7 @@ public final class Maths { } /** - * JavaScript can not read binary data such as float if they are not byte aligned. + * JavaScript cannot read binary data such as float if they are not byte aligned. * Float require 4 bytes alignment and Double 8. * In the B3DM specification the gltf must be 8 bytes aligned. * diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/MatrixND.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/MatrixND.java index e7f84d92ac..a76b423d3b 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/MatrixND.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/MatrixND.java @@ -365,7 +365,7 @@ public class MatrixND extends AbstractMatrix<MatrixND>{ public MatrixND invert(){ final double[][] inverse = Matrices.localInvert(values); if (inverse == null){ - throw new IllegalArgumentException("Can not inverse"); + throw new IllegalArgumentException("Cannot inverse"); } return this; } diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/ReadOnly.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/ReadOnly.java index e1a0de833b..35fcfe87a7 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/ReadOnly.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/ReadOnly.java @@ -560,7 +560,7 @@ public final class ReadOnly { /** * Inverse transform a single tuple. * - * @param source tuple, can not be null. + * @param source tuple, cannot be null. * @param dest tuple, can be null. * @return destination tuple. */ diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Transform.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Transform.java index bf8e0b91a8..59150854c0 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Transform.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Transform.java @@ -50,7 +50,7 @@ public interface Transform { /** * Transform a single tuple. * - * @param source tuple array, can not be null. + * @param source tuple array, cannot be null. * @param dest array, can be null. * @return destination tuple. */ @@ -65,9 +65,9 @@ public interface Transform { /** * Transform N tuples. * - * @param source tuple array, can not be null. + * @param source tuple array, cannot be null. * @param sourceOffset index where to start. - * @param dest array, can not be null. + * @param dest array, cannot be null. * @param destOffset index where start inserting converted values. * @param nbTuple number of tuples to transform. */ @@ -76,7 +76,7 @@ public interface Transform { /** * Transform a single tuple. * - * @param source tuple array, can not be null. + * @param source tuple array, cannot be null. * @param dest array, can be null. * @return destination tuple. */ @@ -91,9 +91,9 @@ public interface Transform { /** * Transform N tuples. * - * @param source tuple array, can not be null. + * @param source tuple array, cannot be null. * @param sourceOffset index where to start. - * @param dest array, can not be null. + * @param dest array, cannot be null. * @param destOffset index where start inserting converted values. * @param nbTuple number of tuples to transform. */ @@ -102,7 +102,7 @@ public interface Transform { /** * Transform a single tuple. * - * @param source tuple, can not be null. + * @param source tuple, cannot be null. * @param dest tuple, can be null. * @return destination tuple. */ diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/GeometryOperations.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/GeometryOperations.java index e3d24b9a41..cd86bd83de 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/GeometryOperations.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/GeometryOperations.java @@ -618,7 +618,7 @@ public final class GeometryOperations { continue reduce; } } - //no more simplification possible, or we encounter a case were we can not identify the most efficient one + //no more simplification possible, or we encounter a case were we cannot identify the most efficient one break; } @@ -660,7 +660,7 @@ public final class GeometryOperations { continue reduce; } } - //no more simplification possible, or we encounter a case were we can not identify the most efficient one + //no more simplification possible, or we encounter a case were we cannot identify the most efficient one break; } diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/simplify/greedyinsert/TINBuilder.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/simplify/greedyinsert/TINBuilder.java index 03562ef477..b7f4ee3db3 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/simplify/greedyinsert/TINBuilder.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/simplify/greedyinsert/TINBuilder.java @@ -435,7 +435,7 @@ public final class TINBuilder { */ private void testDelaunay(Edge e0) throws OperationException { if (e0.isConstraint()) { - //edge is a constraint, it can not be removed + //edge is a constraint, it cannot be removed return; } WTriangle t0 = e0.t0; diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/spatialanalysis2d/ISOLine.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/spatialanalysis2d/ISOLine.java index a2d2e67c48..b92844c2cf 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/spatialanalysis2d/ISOLine.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/spatialanalysis2d/ISOLine.java @@ -123,7 +123,7 @@ public final class ISOLine { final double startZ = start[Z]; double ratio = end[Z] - startZ; if (ratio == 0) { - if (z != startZ) throw new IllegalStateException("Start and end coordinates have the same value of "+Z+" interpolation to target value ("+startZ+") can't be performed."); + if (z != startZ) throw new IllegalStateException("Start and end coordinates have the same value of "+Z+" interpolation to target value ("+startZ+") cannot be performed."); return new double[]{start[0], start[1], z}; //flat line } ratio = (z - start[Z]) / ratio; @@ -136,7 +136,7 @@ public final class ISOLine { final double startZ = start[Z]; double ratio = end[Z] - startZ; if (ratio == 0) { - if (z != startZ) throw new IllegalStateException("Start and end coordinates have the same value of "+Z+" interpolation to target value ("+startZ+") can't be performed."); + if (z != startZ) throw new IllegalStateException("Start and end coordinates have the same value of "+Z+" interpolation to target value ("+startZ+") cannot be performed."); return new Coordinate(start[0], start[1], z); //flat line } ratio = (z - start[Z]) / ratio; diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/triangulate/delaunay/Delaunay.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/triangulate/delaunay/Delaunay.java index 4c3fe21541..2cdc790c5f 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/triangulate/delaunay/Delaunay.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/operation/triangulate/delaunay/Delaunay.java @@ -813,7 +813,7 @@ public final class Delaunay { */ private void testDelaunay(OrientedEdge B_D) throws OperationException { if (B_D.isConstraint()) { - //edge is a constraint, it can not be removed + //edge is a constraint, it cannot be removed return; } final OrientedEdge D_B = B_D.reverse(); @@ -888,7 +888,7 @@ public final class Delaunay { if (constraintAddMode) { constraintStackEdges.addFirst(B_D); } else { - throw new OperationException("Can not swap a constraint edge."); + throw new OperationException("Cannot swap a constraint edge."); } } diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/processor/ProcessorUtils.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/processor/ProcessorUtils.java index 164c8f85c2..1e2610f2d3 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/processor/ProcessorUtils.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/processor/ProcessorUtils.java @@ -97,7 +97,7 @@ public final class ProcessorUtils { // Dimension exactly matches, no need to decompse the CRS if (lower == 0 && dimension == upper) return crs; - // CRS can not be decomposed + // CRS cannot be decomposed if (!(crs instanceof CompoundCRS)) return null; final List<CoordinateReferenceSystem> parts = new ArrayList<>(1); @@ -139,7 +139,7 @@ public final class ProcessorUtils { return dimension; } - // CRS can not be decomposed + // CRS cannot be decomposed if (!(crs instanceof CompoundCRS)) return -1; int nbDimRead = 0; diff --git a/incubator/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ResourceBuilder.java b/incubator/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ResourceBuilder.java index 087cabb903..85b1e8c759 100644 --- a/incubator/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ResourceBuilder.java +++ b/incubator/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ResourceBuilder.java @@ -255,7 +255,7 @@ final class ResourceBuilder { * * @param itemID identifier of the item to read. * @return the item for locating the identified data, or {@code null} if none. - * @throws DataStoreContentException if there is two ore more items for the same identifier. + * @throws DataStoreContentException if there are two ore more items for the same identifier. */ private ByteRanges.Reader getLocationByIdentifier(final int itemID) throws DataStoreContentException { final Object item = itemLocations.get(itemID); diff --git a/incubator/src/org.apache.sis.storage.geopackage/main/org/apache/sis/storage/geopackage/Initializer.java b/incubator/src/org.apache.sis.storage.geopackage/main/org/apache/sis/storage/geopackage/Initializer.java index 176533f6c5..0cff27caa5 100644 --- a/incubator/src/org.apache.sis.storage.geopackage/main/org/apache/sis/storage/geopackage/Initializer.java +++ b/incubator/src/org.apache.sis.storage.geopackage/main/org/apache/sis/storage/geopackage/Initializer.java @@ -55,13 +55,13 @@ final class Initializer { static final String WAL_SUFFIX = "-wal", SHM_SUFFIX = "-shm"; /** - * The user-supplied file, or {@code null} if none. + * The user supplied file, or {@code null} if none. */ Path path; /** * The storage connector with {@link #source} as the storage object. - * If the user-supplied storage connector is already wrapping a {@link DataSource}, then it is used. + * If the user supplied storage connector is already wrapping a {@link DataSource}, then it is used. * Otherwise, a new storage connector is created with a new SQLite {@code DataSource} as the storage. */ StorageConnector connector; diff --git a/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/map/EvanescentPane.java b/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/map/EvanescentPane.java index b9e77117d3..8e908701a4 100644 --- a/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/map/EvanescentPane.java +++ b/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/map/EvanescentPane.java @@ -50,12 +50,12 @@ final class EvanescentPane extends Pane implements ListChangeListener<Node> { * If there is no pane with an identity transform, a new pane is created and * added to the list of children. * - * <p>Note that the returned pane has an identity transform at the time that + * <p>Note that the returned pane has an identity transform at the time when * this method is invoked, but that transform may become non-identity later * if the user navigates on the map (e.g. zoom or pan events).</p> * * @param children the children of {@link MapCanvas#floatingPane}. - * @return a pane with an identity transform at the time that this method is invoked. + * @return a pane with an identity transform at the time when this method is invoked. */ static EvanescentPane getOrCreate(final List<Node> children) { for (int i = children.size(); --i >= 0;) { diff --git a/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/map/MapCanvas.java b/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/map/MapCanvas.java index c04841424c..4b5d1b5b72 100644 --- a/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/map/MapCanvas.java +++ b/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/map/MapCanvas.java @@ -444,7 +444,7 @@ public abstract class MapCanvas extends PlanarCanvas { * but at the expanse of quality. Evanescent panes are easier to use because the callers do not need to care * about changes of the {@linkplain #getObjectiveToDisplay() objective to display} transform. * Instead, callers can add shapes with coordinate values computed using the current transform - * at the time that this method is invoked, and ignore the changes that may happen afterward. + * at the time when this method is invoked, and ignore the changes that may happen afterward. * If the user continues to navigate on the map, the {@linkplain Pane#getTransforms() list of transforms} * of the returned pane will be updated. * @@ -1386,7 +1386,7 @@ public abstract class MapCanvas extends PlanarCanvas { /** * Invoked after the background thread created by {@link #repaint()} finished to update map content. * This method should be invoked in all cases: after successful completion, failure or cancellation. - * The {@link RenderingTask#changeInProgress} transform is the JavaFX transform at the time that the + * The {@link RenderingTask#changeInProgress} transform is the JavaFX transform at the time when the * repaint event started and which is now integrated in the map. * That transform will be removed from {@link #floatingPane} transforms. * The {@link #transform} result is identity if no zoom, rotation or pan gesture has been applied @@ -1438,7 +1438,7 @@ public abstract class MapCanvas extends PlanarCanvas { /* * Note: intuitively one may expect `prepend(…)` instead of `append(…)` above. * The use of `prepend(…)` would give a `transform` result which would be as if - * the transform was the identity transform at the time that rendering started, + * the transform was the identity transform at the time when rendering started, * and all operations on it are gesture events that occurred while the renderer * was working in background. But actually this is not quite correct. * See the zoom-in discussion in "example" section of method javadoc. diff --git a/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/referencing/AuthorityCodes.java b/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/referencing/AuthorityCodes.java index 23b1abf148..8d9242d824 100644 --- a/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/referencing/AuthorityCodes.java +++ b/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/referencing/AuthorityCodes.java @@ -365,7 +365,7 @@ final class AuthorityCodes extends ObservableListBase<Code> } /* * This task may be created and ready but not yet started. It happens if `scheduleNewLoader()` - * found no code to process in the `toDescribe` list at the time that method has been invoked. + * found no code to process in the `toDescribe` list at the time when the method has been invoked. */ if (!isRunning) { start(); diff --git a/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/setup/Wizard.java b/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/setup/Wizard.java index 336b2af85d..480bf5b170 100644 --- a/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/setup/Wizard.java +++ b/optional/src/org.apache.sis.gui/main/org/apache/sis/gui/setup/Wizard.java @@ -174,8 +174,8 @@ final class Wizard extends FileFilter implements ActionListener, PropertyChangeL private final JButton cancelButton; /** - * The button for selecting a directory or a ZIP file. This button may be - * non-null only during the time that a {@link JFileChooser} is visible. + * The button for selecting a directory or a <abbr>ZIP</abbr> file. + * This button may be non-null only during the time when a {@link JFileChooser} is visible. * * @see #findSelectButton(Container) */ diff --git a/optional/src/org.apache.sis.storage.gdal/main/org/apache/sis/storage/gdal/FeatureIterator.java b/optional/src/org.apache.sis.storage.gdal/main/org/apache/sis/storage/gdal/FeatureIterator.java index bec3d0fcd9..6520af2b54 100644 --- a/optional/src/org.apache.sis.storage.gdal/main/org/apache/sis/storage/gdal/FeatureIterator.java +++ b/optional/src/org.apache.sis.storage.gdal/main/org/apache/sis/storage/gdal/FeatureIterator.java @@ -139,7 +139,7 @@ final class FeatureIterator implements Spliterator<Feature>, Runnable { * <p>This method must be invoked in a block synchronized on {@code layer.store}.</p> * * @throws ConcurrentReadException if another iteration is already in progress. - * @throws Throwable if an error occurred while reseting the stream. + * @throws Throwable if an error occurred while resetting the stream. */ private void initialize(final OGR ogr) throws Throwable { assert Thread.holdsLock(layer.store);
