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 f89ffa9afb31abc9770654426a5ba74b30258883 Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Mon Dec 25 18:54:43 2023 +0100 Spelling fix: "to thrown" → "to throw". --- .../main/org/apache/sis/coverage/grid/GridCoverageBuilder.java | 2 +- .../main/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java | 4 ++-- .../sis/referencing/operation/provider/DatumShiftGridLoader.java | 2 +- .../main/org/apache/sis/referencing/operation/provider/NADCON.java | 2 +- .../sis/referencing/operation/transform/ContextualParameters.java | 2 +- .../org/apache/sis/referencing/util/j2d/ImmutableAffineTransform.java | 2 +- .../main/org/apache/sis/referencing/util/j2d/Tile.java | 2 +- .../main/org/apache/sis/storage/netcdf/base/Variable.java | 4 ++-- .../src/org.apache.sis.util/main/org/apache/sis/util/Utilities.java | 2 +- .../main/org/apache/sis/util/collection/Cache.java | 2 +- .../main/org/apache/sis/util/internal/CheckedArrayList.java | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) 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 d02a7a0130..6d1ada64ec 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 @@ -568,7 +568,7 @@ public class GridCoverageBuilder { } /** - * Returns an error message for the exception to thrown when a mandatory property is missing. + * Returns an error message for the exception to throw when a mandatory property is missing. * * @param name name of the missing property. * @return message for the exception to throw. 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 60adc98643..2adeaf075c 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 @@ -1935,7 +1935,7 @@ codes: for (int i=0; i<codes.length; i++) { /* * One of `semiMinorAxis` and `inverseFlattening` values can be NULL in the database. * Consequently, we don't use `getString(ResultSet, int)` for those parameters because - * we do not want to thrown an exception if a NULL value is found. + * we do not want to throw an exception if a NULL value is found. */ final Integer epsg = getInteger (code, result, 1); final String name = getString (code, result, 2); @@ -2285,7 +2285,7 @@ codes: for (int i=0; i<codes.length; i++) { if (i < axes.length) { /* * If `i` is out of bounds, an exception will be thrown after the loop. - * We do not want to thrown an ArrayIndexOutOfBoundsException here. + * We do not want to throw an ArrayIndexOutOfBoundsException here. */ axes[i] = owner.createCoordinateSystemAxis(axis); } diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/provider/DatumShiftGridLoader.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/provider/DatumShiftGridLoader.java index bc03ecc036..f62315ac6e 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/provider/DatumShiftGridLoader.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/provider/DatumShiftGridLoader.java @@ -219,7 +219,7 @@ abstract class DatumShiftGridLoader { } /** - * Creates the exception to thrown when the provider failed to load the grid file. + * Creates the exception to throw when the provider failed to load the grid file. * * @param format the format name (e.g. "NTv2" or "NADCON"). * @param file the grid file that the subclass tried to load. diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/provider/NADCON.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/provider/NADCON.java index 967ab4462b..00849852d6 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/provider/NADCON.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/provider/NADCON.java @@ -359,7 +359,7 @@ public final class NADCON extends AbstractProvider { } /** - * Returns the exception to thrown in the file does not seems to be a NADCON format. + * Returns the exception to throw in the file does not seems to be a NADCON format. */ private FactoryException unexpectedFormat() { return new FactoryException(Errors.format(Errors.Keys.UnexpectedFileFormat_2, NADCON, file)); diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/ContextualParameters.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/ContextualParameters.java index bc33968320..bfa1028dd9 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/ContextualParameters.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/transform/ContextualParameters.java @@ -677,7 +677,7 @@ public class ContextualParameters extends Parameters implements Serializable { } /** - * Returns the exception to thrown when the parameter of the given name has not been found. + * Returns the exception to throw when the parameter of the given name has not been found. */ private ParameterNotFoundException parameterNotFound(final String name) { return new ParameterNotFoundException(Resources.format( diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/util/j2d/ImmutableAffineTransform.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/util/j2d/ImmutableAffineTransform.java index ca1e913664..698e56c80f 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/util/j2d/ImmutableAffineTransform.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/util/j2d/ImmutableAffineTransform.java @@ -80,7 +80,7 @@ public class ImmutableAffineTransform extends AffineTransform { /** * Checks if the caller is allowed to change this {@code AffineTransform} state. - * If this method is defined to thrown an exception in all case (which is the default), + * If this method is defined to throw an exception in all case (which is the default), * then this {@code AffineTransform} is immutable. * * <p>An {@code ImmutableAffineTransform} may be temporary mutable at construction time, diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/util/j2d/Tile.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/util/j2d/Tile.java index ccbee6a32a..adcc833c1c 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/util/j2d/Tile.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/util/j2d/Tile.java @@ -670,7 +670,7 @@ public class Tile implements Serializable { /* * Table completed. Flushs to the writer and appends additional text if we have * not formatted every tiles. IOException may be thrown starting from this point - * (the above code is not expected to thrown any IOException). + * (the above code is not expected to throw any IOException). */ table.flush(); if (remaining < 0) { diff --git a/endorsed/src/org.apache.sis.storage.netcdf/main/org/apache/sis/storage/netcdf/base/Variable.java b/endorsed/src/org.apache.sis.storage.netcdf/main/org/apache/sis/storage/netcdf/base/Variable.java index 59baa6cf9c..207272a73d 100644 --- a/endorsed/src/org.apache.sis.storage.netcdf/main/org/apache/sis/storage/netcdf/base/Variable.java +++ b/endorsed/src/org.apache.sis.storage.netcdf/main/org/apache/sis/storage/netcdf/base/Variable.java @@ -1267,10 +1267,10 @@ public abstract class Variable extends Node { } /** - * Constructs the exception to thrown when the variable position cannot be computed. + * Constructs the exception to throw when the variable position cannot be computed. * * @param cause the reason why we cannot compute the position, or {@code null}. - * @return the exception to thrown. + * @return the exception to throw. */ protected final DataStoreContentException canNotComputePosition(final ArithmeticException cause) { return new DataStoreContentException(resources().getString( diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/Utilities.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/Utilities.java index 4f54c25008..e7d3d16b56 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/Utilities.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/Utilities.java @@ -273,7 +273,7 @@ public final class Utilities extends Static { /** * Returns {@code true} if the given mode is not {@link ComparisonMode#DEBUG}. In debug mode, - * the expected behavior of {@link #deepEquals(Object, Object, ComparisonMode)} is to thrown + * the expected behavior of {@link #deepEquals(Object, Object, ComparisonMode)} is to throw * an exception (rather than returning {@code false}) when two objects are not equal. */ private static boolean isNotDebug(final ComparisonMode mode) { diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/Cache.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/Cache.java index 4627f47507..9b6c01d446 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/Cache.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/Cache.java @@ -1332,7 +1332,7 @@ public class Cache<K,V> extends AbstractMap<K,V> implements ConcurrentMap<K,V> { /** * If set to {@code true}, different values may be assigned to the same key. This is usually an - * error, so the default {@code Cache} behavior is to thrown an {@link IllegalStateException} + * error, so the default {@code Cache} behavior is to throw an {@link IllegalStateException} * in such cases, typically when {@link Handler#putAndUnlock(Object)} is invoked. However, in * some cases we may want to relax this check. For example, the EPSG database sometimes assigns * the same key to different kinds of objects. diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/internal/CheckedArrayList.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/internal/CheckedArrayList.java index d5578798ea..a65e388130 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/internal/CheckedArrayList.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/internal/CheckedArrayList.java @@ -127,7 +127,7 @@ public final class CheckedArrayList<E> extends ArrayList<E> implements CheckedCo * XML elements (see SIS-139 and SIS-157).</li> * <li>If no unmarshalling process is under way, then this method returns a {@code String} containing the * error message to give to the exception to be thrown. The {@code add(E)} caller method is responsible - * to thrown an exception with that message. We let the caller throw the exception for reducing the + * to throw an exception with that message. We let the caller throws the exception for reducing the * stack trace depth, so the first element on the stack trace is the public {@code add(E)} method.</li> * </ul> *