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 2fe5e23c6a94b7a4dc6dbd526f8e34e8722da0e6 Author: Martin Desruisseaux <[email protected]> AuthorDate: Mon Jul 21 18:01:34 2025 +0200 Fix a spelling error: "casted" → "cast". --- .../main/org/apache/sis/coverage/CategoryList.java | 2 +- .../org/apache/sis/feature/DefaultFeatureType.java | 2 +- .../main/org/apache/sis/feature/Features.java | 4 +- .../main/org/apache/sis/filter/Optimization.java | 6 +- .../main/org/apache/sis/filter/PropertyValue.java | 2 +- .../main/org/apache/sis/filter/TemporalFilter.java | 2 +- .../main/org/apache/sis/image/PixelIterator.java | 2 +- .../main/org/apache/sis/image/TransferType.java | 6 +- .../main/org/apache/sis/image/Transferer.java | 2 +- .../org/apache/sis/feature/FeatureTestCase.java | 6 +- .../sis/filter/privy/ValueReferenceMock.java | 2 +- .../DefaultRepresentativeFraction.java | 4 +- .../iso/maintenance/DefaultScopeDescription.java | 2 +- .../apache/sis/util/iso/DefaultNameFactory.java | 6 +- .../main/org/apache/sis/util/iso/Types.java | 2 +- .../sis/geometry/AbstractDirectPosition.java | 2 +- .../org/apache/sis/geometry/AbstractEnvelope.java | 2 +- .../sis/parameter/DefaultParameterValue.java | 4 +- .../main/org/apache/sis/parameter/Parameters.java | 4 +- .../main/org/apache/sis/parameter/Verifier.java | 2 +- .../main/org/apache/sis/referencing/Builder.java | 2 +- .../factory/GeodeticAuthorityFactory.java | 70 +++++++++++----------- .../referencing/operation/gridded/LoadedGrid.java | 2 +- .../operation/matrix/AffineTransforms2D.java | 6 +- .../sis/referencing/operation/matrix/Matrix1.java | 2 +- .../sis/referencing/operation/matrix/Matrix2.java | 2 +- .../sis/referencing/operation/matrix/Matrix3.java | 2 +- .../sis/referencing/operation/matrix/Matrix4.java | 2 +- .../referencing/operation/matrix/MatrixSIS.java | 2 +- .../org/apache/sis/storage/netcdf/base/Node.java | 4 +- .../org/apache/sis/io/stream/UpdatableWrite.java | 2 +- .../org/apache/sis/storage/StorageConnector.java | 8 +-- .../main/org/apache/sis/math/ArrayVector.java | 4 +- .../main/org/apache/sis/math/Vector.java | 6 +- .../main/org/apache/sis/measure/DerivedScalar.java | 4 +- .../org/apache/sis/measure/MeasurementRange.java | 6 +- .../main/org/apache/sis/measure/NumberRange.java | 14 ++--- .../main/org/apache/sis/measure/Scalar.java | 10 ++-- .../main/org/apache/sis/util/ArgumentChecks.java | 2 +- .../main/org/apache/sis/util/ArraysExt.java | 20 +++---- .../main/org/apache/sis/util/Numbers.java | 6 +- .../org/apache/sis/util/collection/Containers.java | 8 +-- .../sis/util/collection/DefaultTreeTable.java | 2 +- .../main/org/apache/sis/util/privy/Constants.java | 10 ++-- .../main/org/apache/sis/util/privy/Numerics.java | 2 +- .../test/org/apache/sis/math/VectorTest.java | 2 +- .../org/apache/sis/measure/SystemUnitTest.java | 2 +- .../org/apache/sis/geometries/math/Matrix2D.java | 2 +- .../org/apache/sis/geometries/math/Matrix3D.java | 2 +- .../org/apache/sis/geometries/math/Matrix4D.java | 2 +- .../main/org/apache/sis/geometries/math/Tuple.java | 8 +-- .../org/apache/sis/geometries/math/TupleArray.java | 20 +++---- 52 files changed, 150 insertions(+), 150 deletions(-) diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/CategoryList.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/CategoryList.java index 5c23edb068..27382507bf 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/CategoryList.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/CategoryList.java @@ -359,7 +359,7 @@ final class CategoryList extends AbstractList<Category> implements MathTransform * Note that the background value given in argument is a sample value, so it can be * used only for the "unit to sample" conversion. If that background value is zero, * it will be interpreted as "let NaN values propagate" but it should be okay since - * NaN casted to integers become 0. + * NaN cast to integers become 0. */ fallback = (!isSampleToUnit && background != null) ? background.doubleValue() : Double.NaN; } diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/DefaultFeatureType.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/DefaultFeatureType.java index 5984c258a3..83e5ce6285 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/DefaultFeatureType.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/DefaultFeatureType.java @@ -81,7 +81,7 @@ import org.opengis.feature.PropertyNotFoundException; * * <div class="note"><b>Analogy:</b> compared to the Java language, the above rule is similar to overriding a method * with a more specific return type (a.k.a. <dfn>covariant return type</dfn>). This is also similar to Java arrays, - * which are implicitly <i>covariant</i> (i.e. {@code String[]} can be casted to {@code CharSequence[]}, which is + * which are implicitly <i>covariant</i> (i.e. {@code String[]} can be cast to {@code CharSequence[]}, which is * safe for read operations but not for write operations — the latter may throw {@link ArrayStoreException}).</div> * * <h2>Instantiation</h2> diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/Features.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/Features.java index 6cd9577401..41f4b15392 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/Features.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/feature/Features.java @@ -68,7 +68,7 @@ public final class Features extends Static { * @param <V> the expected value class. * @param type the attribute type to cast, or {@code null}. * @param valueClass the expected value class. - * @return the attribute type casted to the given value class, or {@code null} if the given type was null. + * @return the attribute type cast to the given value class, or {@code null} if the given type was null. * @throws ClassCastException if the given attribute type does not have the expected value class. * * @category verification @@ -100,7 +100,7 @@ public final class Features extends Static { * @param <V> the expected value class. * @param attribute the attribute instance to cast, or {@code null}. * @param valueClass the expected value class. - * @return the attribute instance casted to the given value class, or {@code null} if the given instance was null. + * @return the attribute instance cast to the given value class, or {@code null} if the given instance was null. * @throws ClassCastException if the given attribute instance does not have the expected value class. * * @category verification diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/Optimization.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/Optimization.java index 63348f1ee8..29b26bd24f 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/Optimization.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/Optimization.java @@ -235,11 +235,11 @@ public class Optimization { } /** - * If the given predicate can be casted to a filter of the same parameterized type as this, - * returns {@code other} casted to that type. Otherwise returns {@code null}. + * If the given predicate can be cast to a filter of the same parameterized type as this, + * returns {@code other} cast to that type. Otherwise returns {@code null}. * * @param other the predicate to cast to a filter compatible with this. - * @return the casted predicate, or {@code null} if it cannot be casted. + * @return the cast predicate, or {@code null} if it cannot be cast. */ @SuppressWarnings("unchecked") private Filter<R> castOrNull(final Predicate<? super R> other) { diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/PropertyValue.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/PropertyValue.java index 06410e94c4..29e203d7b9 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/PropertyValue.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/PropertyValue.java @@ -398,7 +398,7 @@ abstract class PropertyValue<V> extends LeafExpression<Feature,V> /** * An expression fetching property values as an object of specified type. - * The value is first casted from {@link Object} to the expected source type, + * The value is first cast from {@link Object} to the expected source type, * then converted to the specified target type. * * @param <S> the type of source value before conversion. diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/TemporalFilter.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/TemporalFilter.java index 6413abcadc..a8c05ad15b 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/TemporalFilter.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/TemporalFilter.java @@ -162,7 +162,7 @@ class TemporalFilter<R,T> extends BinaryFunction<R,T,T> * * @param effective the expression to cast. * @return an expression that can be used with this temporal filter. - * @throws ClassCastException if the expression cannot be casted. + * @throws ClassCastException if the expression cannot be cast. */ protected final Expression<R, ? extends T> cast(final Expression<R,?> effective) { return effective.toValueType(operation.comparators.type); diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/PixelIterator.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/PixelIterator.java index 1ced8e4296..76c8b23ef1 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/PixelIterator.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/PixelIterator.java @@ -543,7 +543,7 @@ public class PixelIterator { * This method should be used instead of {@code instanceof} check because, for some implementations, being * an instance of {@code WritablePixelIterator} is not a sufficient condition. * - * @return {@code true} if this iterator can safely be casted to {@link WritablePixelIterator} and used for + * @return {@code true} if this iterator can safely be cast to {@link WritablePixelIterator} and used for * writing pixel values. */ public boolean isWritable() { diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/TransferType.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/TransferType.java index c755199d86..15612acef4 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/TransferType.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/TransferType.java @@ -70,7 +70,7 @@ public final class TransferType<T extends Buffer> implements Serializable { /** * Specifies that sample values are transferred as 32 bits signed integer. - * If the raster stores sample values as {@code byte} or {@code short}, the values are casted by a widening + * If the raster stores sample values as {@code byte} or {@code short}, the values are cast by a widening * conversion before to be transferred. If the raster stores sample values as {@code float} or {@code double}, * the values are rounded toward 0 before to be transferred. * @@ -81,7 +81,7 @@ public final class TransferType<T extends Buffer> implements Serializable { /** * Specifies that sample values are transferred as single-precision floating point number. - * Values of other types are casted as needed. + * Values of other types are cast as needed. * * @see PixelIterator#getSampleFloat(int) * @see PixelIterator#getPixel(float[]) @@ -90,7 +90,7 @@ public final class TransferType<T extends Buffer> implements Serializable { /** * Specifies that sample values are transferred as double-precision floating point number. - * Values of other types are casted as needed. This is the safest transfer type to use + * Values of other types are cast as needed. This is the safest transfer type to use * when wanting to avoid any precision lost. * * @see PixelIterator#getSampleDouble(int) diff --git a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/Transferer.java b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/Transferer.java index fc6a002d5a..eef1ccefb8 100644 --- a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/Transferer.java +++ b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/Transferer.java @@ -600,7 +600,7 @@ abstract class Transferer { } /** - * Returns {@code true} if the given raster uses a data type that can be casted to the {@code float} type + * Returns {@code true} if the given raster uses a data type that can be cast to the {@code float} type * without precision lost. If the type is unknown, then this method returns {@code false}. Note that this * method also returns {@code false} for {@link DataBuffer#TYPE_INT} because conversion of 32 bits integer * to the {@code float} type may lost precision digits. diff --git a/endorsed/src/org.apache.sis.feature/test/org/apache/sis/feature/FeatureTestCase.java b/endorsed/src/org.apache.sis.feature/test/org/apache/sis/feature/FeatureTestCase.java index 9cba286bda..e7cdce107f 100644 --- a/endorsed/src/org.apache.sis.feature/test/org/apache/sis/feature/FeatureTestCase.java +++ b/endorsed/src/org.apache.sis.feature/test/org/apache/sis/feature/FeatureTestCase.java @@ -294,14 +294,14 @@ public abstract class FeatureTestCase extends TestCase { feature = createFeature(DefaultFeatureTypeTest.city()); final var wrong = SingletonAttributeTest.parliament(); final var city = assertInstanceOf(AttributeType.class, feature.getType().getProperty("city")); - final var casted = new CustomAttribute<>(Features.cast(city, String.class)); + final var cast = new CustomAttribute<>(Features.cast(city, String.class)); - feature.setProperty(casted); + feature.setProperty(cast); setAttributeValue("city", "Utopia", "Atlantide"); var exception = assertThrows(IllegalArgumentException.class, () -> feature.setProperty(wrong)); assertMessageContains(exception, "parliament", "City"); - if (assertSameProperty("city", casted, true)) { + if (assertSameProperty("city", cast, true)) { /* * The quality report is expected to contains a custom element. */ diff --git a/endorsed/src/org.apache.sis.feature/test/org/apache/sis/filter/privy/ValueReferenceMock.java b/endorsed/src/org.apache.sis.feature/test/org/apache/sis/filter/privy/ValueReferenceMock.java index 0f3fe71e7b..c9c3ce70a7 100644 --- a/endorsed/src/org.apache.sis.feature/test/org/apache/sis/filter/privy/ValueReferenceMock.java +++ b/endorsed/src/org.apache.sis.feature/test/org/apache/sis/filter/privy/ValueReferenceMock.java @@ -76,7 +76,7 @@ final class ValueReferenceMock<V> implements ValueReference<Map<String,?>, V> { } /** - * Returns a reference to the same value but casted to a different type. + * Returns a reference to the same value but cast to a different type. */ @Override public <N> Expression<Map<String,?>, N> toValueType(final Class<N> target) { diff --git a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/identification/DefaultRepresentativeFraction.java b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/identification/DefaultRepresentativeFraction.java index 5f205e3d33..db362e34e3 100644 --- a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/identification/DefaultRepresentativeFraction.java +++ b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/identification/DefaultRepresentativeFraction.java @@ -231,7 +231,7 @@ public class DefaultRepresentativeFraction extends Number implements Representat /** * Returns 1 if the {@linkplain #getDenominator() denominator} is equal to 1, or 0 otherwise. - * This method is implemented that way because scales smaller than 1 can only be casted to 0, + * This method is implemented that way because scales smaller than 1 can only be cast to 0, * and NaN values are also represented by 0. * * @return 1 if the denominator is 1, or 0 otherwise. @@ -243,7 +243,7 @@ public class DefaultRepresentativeFraction extends Number implements Representat /** * Returns 1 if the {@linkplain #getDenominator() denominator} is equal to 1, or 0 otherwise. - * This method is implemented that way because scales smaller than 1 can only be casted to 0, + * This method is implemented that way because scales smaller than 1 can only be cast to 0, * and NaN values are also represented by 0. * * @return 1 if the denominator is 1, or 0 otherwise. diff --git a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/maintenance/DefaultScopeDescription.java b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/maintenance/DefaultScopeDescription.java index 1ed6037e7b..22acce25bf 100644 --- a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/maintenance/DefaultScopeDescription.java +++ b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/metadata/iso/maintenance/DefaultScopeDescription.java @@ -205,7 +205,7 @@ public class DefaultScopeDescription extends ISOMetadata implements ScopeDescrip } /** - * Returns the given value casted to a {@code Set<CharSequence>}. + * Returns the given value cast to a {@code Set<CharSequence>}. */ @SuppressWarnings("unchecked") private static Set<CharSequence> cast(final Object value) { diff --git a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/util/iso/DefaultNameFactory.java b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/util/iso/DefaultNameFactory.java index a8902970e2..3ce5f70222 100644 --- a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/util/iso/DefaultNameFactory.java +++ b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/util/iso/DefaultNameFactory.java @@ -373,7 +373,7 @@ public class DefaultNameFactory extends AbstractFactory implements NameFactory { * * <p>Allowed types or element types are:</p> * <ul> - * <li>{@link GenericName}, to be casted and returned as-is.</li> + * <li>{@link GenericName}, to be cast and returned as-is.</li> * <li>{@link CharSequence} (usually a {@link String} or an {@link InternationalString}), * to be parsed as a generic name using the {@link DefaultNameSpace#DEFAULT_SEPARATOR ':'} separator.</li> * <li>{@link Identifier}, its {@linkplain Identifier#getCode() code} to be parsed as a generic name @@ -385,8 +385,8 @@ public class DefaultNameFactory extends AbstractFactory implements NameFactory { * * @param value the object to cast into an array of generic names, or {@code null}. * @return the generic names, or {@code null} if the given {@code value} was null. - * Note that it may be the {@code value} reference itself casted to {@code GenericName[]}. - * @throws ClassCastException if {@code value} cannot be casted. + * Note that it may be the {@code value} reference itself cast to {@code GenericName[]}. + * @throws ClassCastException if {@code value} cannot be cast. * * @since 0.5 */ diff --git a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/util/iso/Types.java b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/util/iso/Types.java index 60481b6e4b..cebb440bc6 100644 --- a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/util/iso/Types.java +++ b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/util/iso/Types.java @@ -849,7 +849,7 @@ public final class Types extends Static { * If the given array is null or an instance of {@code InternationalString[]}, then this method * returns it unchanged. Otherwise a new array of type {@code InternationalString[]} is created * and every elements from the given array is copied or - * {@linkplain #toInternationalString(CharSequence) casted} in the new array. + * {@linkplain #toInternationalString(CharSequence) cast} in the new array. * * <p>If a defensive copy of the {@code strings} array is wanted, then the caller needs to check * if the returned array is the same instance as the one given in argument to this method.</p> diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/geometry/AbstractDirectPosition.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/geometry/AbstractDirectPosition.java index cd30ab4dff..ea9a9412e6 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/geometry/AbstractDirectPosition.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/geometry/AbstractDirectPosition.java @@ -248,7 +248,7 @@ public abstract class AbstractDirectPosition extends FormattableObject implement * (WKT) format. * * @param position the position to format. - * @param isSinglePrecision {@code true} if every coordinate values can be casted to {@code float}. + * @param isSinglePrecision {@code true} if every coordinate values can be cast to {@code float}. * @return the point as a {@code POINT} in WKT format. * * @see ArraysExt#isSinglePrecision(double[]) diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/geometry/AbstractEnvelope.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/geometry/AbstractEnvelope.java index 4bd1071ed9..348f3c4809 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/geometry/AbstractEnvelope.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/geometry/AbstractEnvelope.java @@ -1226,7 +1226,7 @@ public abstract class AbstractEnvelope extends FormattableObject implements Enve * methods for formatting a {@code BOX} element from an envelope. * * @param envelope the envelope to format. - * @param isSinglePrecision {@code true} if every lower and upper corner values can be casted to {@code float}. + * @param isSinglePrecision {@code true} if every lower and upper corner values can be cast to {@code float}. * @return this envelope as a {@code BOX} or {@code BOX3D} (most typical dimensions) element. * * @see GeneralEnvelope#GeneralEnvelope(CharSequence) diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/DefaultParameterValue.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/DefaultParameterValue.java index 5339e22c8e..e71221c146 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/DefaultParameterValue.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/DefaultParameterValue.java @@ -363,7 +363,7 @@ public class DefaultParameterValue<T> extends FormattableObject implements Param * Returns an ordered sequence of two or more integer values of this parameter, usually used for counts. * * <p>The default implementation invokes {@link #getValue()} and casts the result if possible, - * or throws an exception otherwise. If the value can be casted, then the array is cloned before + * or throws an exception otherwise. If the value can be cast, then the array is cloned before * to be returned.</p> * * @return a copy of the sequence of values represented by this parameter. @@ -416,7 +416,7 @@ public class DefaultParameterValue<T> extends FormattableObject implements Param * where each value has the same associated unit of measure. * * <p>The default implementation invokes {@link #getValue()} and casts the result if possible, - * or throws an exception otherwise. If the value can be casted, then the array is cloned before + * or throws an exception otherwise. If the value can be cast, then the array is cloned before * to be returned.</p> * * @return a copy of the sequence of values represented by this parameter. diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/Parameters.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/Parameters.java index 9b6be7e8ae..49534f916c 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/Parameters.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/Parameters.java @@ -221,7 +221,7 @@ public abstract class Parameters implements ParameterValueGroup, Cloneable, Prin * @param <T> the expected value class. * @param descriptor the descriptor to cast, or {@code null}. * @param valueClass the expected value class. - * @return the descriptor casted to the given value class, or {@code null} if the given descriptor was null. + * @return the descriptor cast to the given value class, or {@code null} if the given descriptor was null. * @throws ClassCastException if the given descriptor does not have the expected value class. * * @see Class#cast(Object) @@ -254,7 +254,7 @@ public abstract class Parameters implements ParameterValueGroup, Cloneable, Prin * @param <T> the expected value class. * @param parameter the parameter to cast, or {@code null}. * @param valueClass the expected value class. - * @return the value casted to the given type, or {@code null} if the given value was null. + * @return the value cast to the given type, or {@code null} if the given value was null. * @throws ClassCastException if the given value doesn't have the expected value class. * * @see Class#cast(Object) diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/Verifier.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/Verifier.java index 852c6c40e3..93f911f797 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/Verifier.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/parameter/Verifier.java @@ -104,7 +104,7 @@ final class Verifier { * @param value the value to check, or {@code null}. * @param unit the unit of the value to check, or {@code null}. * @return the given value converted to the descriptor unit if any, - * then casted to the descriptor parameterized type. + * then cast to the descriptor parameterized type. * @throws InvalidParameterValueException if the parameter value is invalid. */ static <T> T ensureValidValue(final ParameterDescriptor<T> descriptor, final Object value, final Unit<?> unit) diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/Builder.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/Builder.java index 943c717a34..ebf4180907 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/Builder.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/Builder.java @@ -250,7 +250,7 @@ public abstract class Builder<B extends Builder<B>> { } /** - * Returns {@code this} casted to {@code <B>}. The cast is valid if the assertion performed + * Returns {@code this} cast to {@code <B>}. The cast is valid if the assertion performed * at construction time passes. Since the {@code <B>} type is hard-coded in the source code, * if the JUnit test passes then the cast should always be valid for all instances of the * same builder class. diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticAuthorityFactory.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticAuthorityFactory.java index 9f6ab5bd22..0c5056725c 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticAuthorityFactory.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticAuthorityFactory.java @@ -245,7 +245,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createObject(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate reference system for the given code. @@ -290,7 +290,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateReferenceSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate reference system for the given code. @@ -325,7 +325,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateReferenceSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate reference system for the given code. @@ -363,7 +363,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateReferenceSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate reference system for the given code. @@ -395,7 +395,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateReferenceSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate reference system for the given code. @@ -414,7 +414,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateReferenceSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate reference system for the given code. @@ -433,7 +433,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateReferenceSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate reference system for the given code. @@ -463,7 +463,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateReferenceSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate reference system for the given code. @@ -482,7 +482,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateReferenceSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate reference system for the given code. @@ -511,7 +511,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateReferenceSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate reference system for the given code. @@ -546,7 +546,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createObject(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the datum for the given code. @@ -580,7 +580,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createDatum(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the datum for the given code. @@ -615,7 +615,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createDatum(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the datum for the given code. @@ -634,7 +634,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createDatum(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the datum for the given code. @@ -653,7 +653,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createDatum(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the datum for the given code. @@ -685,7 +685,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createDatum(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the datum for the given code. @@ -717,7 +717,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createObject(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the ellipsoid for the given code. @@ -751,7 +751,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createObject(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the prime meridian for the given code. @@ -782,7 +782,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createObject(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the extent for the given code. @@ -818,7 +818,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createObject(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate system for the given code. @@ -852,7 +852,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate system for the given code. @@ -882,7 +882,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate system for the given code. @@ -901,7 +901,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate system for the given code. @@ -919,7 +919,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate system for the given code. @@ -952,7 +952,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate system for the given code. @@ -982,7 +982,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate system for the given code. @@ -1001,7 +1001,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate system for the given code. @@ -1020,7 +1020,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createCoordinateSystem(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the coordinate system for the given code. @@ -1052,7 +1052,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createObject(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the axis for the given code. @@ -1089,7 +1089,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createObject(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the unit of measurement for the given code. @@ -1122,7 +1122,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createObject(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the parameter descriptor for the given code. @@ -1150,7 +1150,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createObject(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the operation method for the given code. @@ -1185,7 +1185,7 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement * * <h4>Default implementation</h4> * The default implementation delegates to {@link #createObject(String)} and casts the result. - * If the result cannot be casted, then a {@link NoSuchAuthorityCodeException} is thrown. + * If the result cannot be cast, then a {@link NoSuchAuthorityCodeException} is thrown. * * @param code value allocated by authority. * @return the operation for the given code. @@ -1287,13 +1287,13 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement } /** - * Casts the given object to the given type, or throws an exception if the object cannot be casted. + * Casts the given object to the given type, or throws an exception if the object cannot be cast. * This convenience method is provided for implementation of {@code createXXX} methods. * * @param type the type to return (e.g. {@code CoordinateReferenceSystem.class}). * @param object the object to cast. * @param code the authority code, used only for formatting an error message. - * @return the object casted to the given type. + * @return the object cast to the given type. * @throws NoSuchAuthorityCodeException if the given object is not an instance of the given type. * @throws FactoryException if an error occurred while listing the code spaces managed by this factory. */ diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/gridded/LoadedGrid.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/gridded/LoadedGrid.java index a1b77043cb..5959c31a91 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/gridded/LoadedGrid.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/gridded/LoadedGrid.java @@ -333,7 +333,7 @@ public abstract class LoadedGrid<C extends Quantity<C>, T extends Quantity<T>> e } /** - * Returns {@code this} casted to the given type, after verification that those types are valid. + * Returns {@code this} cast to the given type, after verification that those types are valid. * This method is invoked after NADCON, NTv2 or other providers got an existing {@code LoadedGrid} * instance from the {@link #CACHE}. * diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/AffineTransforms2D.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/AffineTransforms2D.java index 7e096d6c3a..5c03c51578 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/AffineTransforms2D.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/AffineTransforms2D.java @@ -55,8 +55,8 @@ public final class AffineTransforms2D extends Static { * Returns the given transform as a Java2D affine transform. * * @param transform the transform to convert, or {@code null}. - * @return the transform argument if it can be safely casted (including {@code null} argument) or converted. - * @throws IllegalArgumentException if the given transform cannot be casted or converted. + * @return the transform argument if it can be safely cast (including {@code null} argument) or converted. + * @throws IllegalArgumentException if the given transform cannot be cast or converted. * * @see #toMathTransform(AffineTransform) */ @@ -76,7 +76,7 @@ public final class AffineTransforms2D extends Static { * Otherwise the values are copied in a new {@code AffineTransform} instance. * * @param matrix the matrix to return as an affine transform, or {@code null}. - * @return the matrix argument if it can be safely casted (including {@code null} argument), + * @return the matrix argument if it can be safely cast (including {@code null} argument), * or a copy of the given matrix otherwise. * @throws IllegalArgumentException if the given matrix size is not 3×3 or if the matrix is not affine. * diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix1.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix1.java index 3b85ada5c0..bbde7dd681 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix1.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix1.java @@ -109,7 +109,7 @@ public class Matrix1 extends MatrixSIS { * verifies the matrix size, then copies the element in a new {@code Matrix1} object. * * @param matrix the matrix to cast or copy, or {@code null}. - * @return the matrix argument if it can be safely casted (including {@code null} argument), + * @return the matrix argument if it can be safely cast (including {@code null} argument), * or a copy of the given matrix otherwise. * @throws MismatchedMatrixSizeException if the size of the given matrix is not {@value #SIZE}×{@value #SIZE}. */ diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix2.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix2.java index 6ee69302f4..6f406bdc4b 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix2.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix2.java @@ -119,7 +119,7 @@ public class Matrix2 extends MatrixSIS { * verifies the matrix size, then copies all elements in a new {@code Matrix2} object. * * @param matrix the matrix to cast or copy, or {@code null}. - * @return the matrix argument if it can be safely casted (including {@code null} argument), + * @return the matrix argument if it can be safely cast (including {@code null} argument), * or a copy of the given matrix otherwise. * @throws MismatchedMatrixSizeException if the size of the given matrix is not {@value #SIZE}×{@value #SIZE}. */ diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix3.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix3.java index b3271aa890..60436c47bf 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix3.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix3.java @@ -131,7 +131,7 @@ public class Matrix3 extends MatrixSIS { * verifies the matrix size, then copies all elements in a new {@code Matrix3} object. * * @param matrix the matrix to cast or copy, or {@code null}. - * @return the matrix argument if it can be safely casted (including {@code null} argument), + * @return the matrix argument if it can be safely cast (including {@code null} argument), * or a copy of the given matrix otherwise. * @throws MismatchedMatrixSizeException if the size of the given matrix is not {@value #SIZE}×{@value #SIZE}. */ diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix4.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix4.java index 7d53874a6b..a2634aee8e 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix4.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/Matrix4.java @@ -149,7 +149,7 @@ public class Matrix4 extends MatrixSIS { * verifies the matrix size, then copies all elements in a new {@code Matrix4} object. * * @param matrix the matrix to cast or copy, or {@code null}. - * @return the matrix argument if it can be safely casted (including {@code null} argument), + * @return the matrix argument if it can be safely cast (including {@code null} argument), * or a copy of the given matrix otherwise. * @throws MismatchedMatrixSizeException if the size of the given matrix is not {@value #SIZE}×{@value #SIZE}. */ diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/MatrixSIS.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/MatrixSIS.java index 47a00b3333..1c1af0dd30 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/MatrixSIS.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/MatrixSIS.java @@ -131,7 +131,7 @@ public abstract class MatrixSIS implements Matrix, LenientComparable, Cloneable, * are copied in a new {@code MatrixSIS} object. * * @param matrix the matrix to cast or copy, or {@code null}. - * @return the matrix argument if it can be safely casted (including {@code null} argument), + * @return the matrix argument if it can be safely cast (including {@code null} argument), * or a copy of the given matrix otherwise. * * @see Matrices#copy(Matrix) diff --git a/endorsed/src/org.apache.sis.storage.netcdf/main/org/apache/sis/storage/netcdf/base/Node.java b/endorsed/src/org.apache.sis.storage.netcdf/main/org/apache/sis/storage/netcdf/base/Node.java index d2f09c9126..5264133542 100644 --- a/endorsed/src/org.apache.sis.storage.netcdf/main/org/apache/sis/storage/netcdf/base/Node.java +++ b/endorsed/src/org.apache.sis.storage.netcdf/main/org/apache/sis/storage/netcdf/base/Node.java @@ -212,7 +212,7 @@ public abstract class Node extends NamedElement { /** * Returns the value of the given attribute as a number, or {@link Double#NaN}. - * If the number is stored with single-precision, it is assumed casted from a + * If the number is stored with single-precision, it is assumed cast from a * representation in base 10. * * @param attributeName the name of the attribute for which to get the value. @@ -233,7 +233,7 @@ public abstract class Node extends NamedElement { /** * Returns the values of the given attribute as a vector of numbers, or {@code null} if none. - * If the numbers are stored with single-precision, they are assumed casted from a representation in base 10. + * If the numbers are stored with single-precision, they are assumed cast from a representation in base 10. * * @param attributeName the name of the attribute for which to get the values. * @return the attribute values, or {@code null} if none, ambiguous or not a vector. diff --git a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/io/stream/UpdatableWrite.java b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/io/stream/UpdatableWrite.java index de079cda45..8f3a1d0892 100644 --- a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/io/stream/UpdatableWrite.java +++ b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/io/stream/UpdatableWrite.java @@ -284,7 +284,7 @@ public abstract class UpdatableWrite<V> implements CheckedContainer<V> { public abstract void setAsLong(long value); /** - * Verifies if the given value can be casted to an unsigned number of the given number of bits. + * Verifies if the given value can be cast to an unsigned number of the given number of bits. * * @param size number of bits of the destination. * @param value the value to validate. diff --git a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/StorageConnector.java b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/StorageConnector.java index e1899492ff..46b681a6bb 100644 --- a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/StorageConnector.java +++ b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/StorageConnector.java @@ -356,7 +356,7 @@ public class StorageConnector implements Serializable { * last resort because some SIS data stores will want to access the channel and buffer directly.</li> * * <li>{@link ImageInputStream}: - * Same as {@code DataInput} if it can be casted, or {@code null} otherwise.</li> + * Same as {@code DataInput} if it can be cast, or {@code null} otherwise.</li> * * <li>{@link InputStream}: * If not explicitly provided, this is a wrapper around the above {@link ImageInputStream}.</li> @@ -796,7 +796,7 @@ public class StorageConnector implements Serializable { * </li> * <li>{@link ImageInputStream}: * <ul> - * <li>If the above {@code DataInput} can be created and casted to {@code ImageInputStream}, returns it.</li> + * <li>If the above {@code DataInput} can be created and cast to {@code ImageInputStream}, returns it.</li> * <li>Otherwise this method returns {@code null}.</li> * </ul> * </li> @@ -835,13 +835,13 @@ public class StorageConnector implements Serializable { * </li> * <li>{@link ImageOutputStream}: * <ul> - * <li>If the above {@code DataOutput} can be created and casted to {@code ImageOutputStream}, returns it.</li> + * <li>If the above {@code DataOutput} can be created and cast to {@code ImageOutputStream}, returns it.</li> * <li>Otherwise this method returns {@code null}.</li> * </ul> * </li> * <li>{@link OutputStream}: * <ul> - * <li>If the above {@code DataOutput} can be created and casted to {@code OutputStream}, returns it.</li> + * <li>If the above {@code DataOutput} can be created and cast to {@code OutputStream}, returns it.</li> * <li>Otherwise this method returns {@code null}.</li> * </ul> * </li> diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/math/ArrayVector.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/math/ArrayVector.java index 13347514e4..d34c0e21f5 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/math/ArrayVector.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/math/ArrayVector.java @@ -172,7 +172,7 @@ abstract class ArrayVector<E extends Number> extends Vector implements CheckedCo } /** - * Verifies that the given value can be casted to the expected type. + * Verifies that the given value can be cast to the expected type. * The expected type must be one of the {@link Numbers} constants. */ void verifyType(final Number value, final byte expected) { @@ -230,7 +230,7 @@ abstract class ArrayVector<E extends Number> extends Vector implements CheckedCo } /** - * Returns the value casted as a {@code float}, since we may loose precision but the + * Returns the value cast as a {@code float}, since we may loose precision but the * result of the cast is not completely wrong (at worst we get zero of infinity values * if the magnitude of the {@code double} value was too small or too large). */ diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/math/Vector.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/math/Vector.java index ee619aba1e..378ad246bf 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/math/Vector.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/math/Vector.java @@ -171,7 +171,7 @@ public abstract class Vector extends AbstractList<Number> implements RandomAcces /** * Wraps the given {@code float[]} array in a vector that preserve the string representations in base 10. - * For example, the 0.1 {@code float} value casted to {@code double} normally produces 0.10000000149011612 + * For example, the 0.1 {@code float} value cast to {@code double} normally produces 0.10000000149011612 * because of the way IEEE 754 arithmetic represents numbers (in base 2 instead of base 10). But the * vector returned by this method will convert the 0.1 {@code float} value into the 0.1 {@code double} value. * Note that despite the appearance, this is <strong>not</strong> more accurate than the normal cast, @@ -266,12 +266,12 @@ public abstract class Vector extends AbstractList<Number> implements RandomAcces public abstract Class<? extends Number> getElementType(); /** - * Returns {@code true} if values in this vector can be casted to single-precision floating point numbers + * Returns {@code true} if values in this vector can be cast to single-precision floating point numbers * ({@code float}) without precision lost. In case of doubt, this method conservatively returns {@code false}. * This information is inferred from the {@linkplain #getElementType() element type} only. * This method does not check the actual values contained in this vector. * - * @return whether values in this vector can be casted to {@code float} primitive type. + * @return whether values in this vector can be cast to {@code float} primitive type. * * @see #floatValue(int) * @see #floatValues() diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/DerivedScalar.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/DerivedScalar.java index a86ac69f0b..aa4875aad9 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/DerivedScalar.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/DerivedScalar.java @@ -130,7 +130,7 @@ class DerivedScalar<Q extends Quantity<Q>> extends Scalar<Q> { } /** - * Returns the value casted to a single-precision floating point number. + * Returns the value cast to a single-precision floating point number. */ @Override public final float floatValue() { @@ -138,7 +138,7 @@ class DerivedScalar<Q extends Quantity<Q>> extends Scalar<Q> { } /** - * Returns the value rounded to nearest integer. {@link Double#NaN} are casted to 0 and values out of + * Returns the value rounded to nearest integer. {@link Double#NaN} are cast to 0 and values out of * {@code long} range are clamped to minimal or maximal representable numbers of {@code long} type. */ @Override diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/MeasurementRange.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/MeasurementRange.java index 177bdcf327..00b4bd8552 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/MeasurementRange.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/MeasurementRange.java @@ -230,7 +230,7 @@ public class MeasurementRange<E extends Number & Comparable<? super E>> extends } /** - * Constructs a range with the same values as the specified range, casted to the specified type. + * Constructs a range with the same values as the specified range, cast to the specified type. * * @param type the element type, usually one of {@link Byte}, {@link Short}, * {@link Integer}, {@link Long}, {@link Float} or {@link Double}. @@ -325,7 +325,7 @@ public class MeasurementRange<E extends Number & Comparable<? super E>> extends * * @param type the class to cast to. Must be one of {@link Byte}, {@link Short}, * {@link Integer}, {@link Long}, {@link Float} or {@link Double}. - * @return the casted range, or {@code range} if no cast is needed. + * @return the cast range, or {@code range} if no cast is needed. */ @Override <N extends Number & Comparable<? super N>> @@ -349,7 +349,7 @@ public class MeasurementRange<E extends Number & Comparable<? super E>> extends * @param type the class to cast to. Must be one of {@link Byte}, {@link Short}, * {@link Integer}, {@link Long}, {@link Float} or {@link Double}. * @param targetUnit the target unit, or {@code null} for no change. - * @return the casted range, or {@code this}. + * @return the cast range, or {@code this}. * @throws IncommensurableException if the given target unit is not compatible with the unit of this range. */ @SuppressWarnings("unchecked") diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/NumberRange.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/NumberRange.java index 6cee11053a..2bfd8d37ab 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/NumberRange.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/NumberRange.java @@ -312,7 +312,7 @@ public class NumberRange<E extends Number & Comparable<? super E>> extends Range /** * Constructs a range using the smallest type of {@link Number} that can hold the given values. * The given numbers do not need to be of the same type since they will - * be {@linkplain Numbers#cast(Number, Class) casted} as needed. + * be {@linkplain Numbers#cast(Number, Class) cast} as needed. * More specifically this method returns: * * <ul> @@ -324,7 +324,7 @@ public class NumberRange<E extends Number & Comparable<? super E>> extends Range * {@value java.lang.Integer#MIN_VALUE} and {@value java.lang.Integer#MAX_VALUE} inclusive.</li> * <li>{@code NumberRange<Long>} if the given values are integers between * {@value java.lang.Long#MIN_VALUE} and {@value java.lang.Long#MAX_VALUE} inclusive.</li> - * <li>{@code NumberRange<Float>} if the given values can be casted to {@code float} values without data lost.</li> + * <li>{@code NumberRange<Float>} if the given values can be cast to {@code float} values without data lost.</li> * <li>{@code NumberRange<Double>} if none of the above types is suitable.</li> * </ul> * @@ -348,7 +348,7 @@ public class NumberRange<E extends Number & Comparable<? super E>> extends Range * If {@code asFloat} is {@code false}, then the returned range can use any wrapper type and this method behaves * as described in {@linkplain #createBestFit(java.lang.Number, boolean, java.lang.Number, boolean) above method}. * If {@code asFloat} is {@code true}, then the returned range is restricted to {@link Float} and {@link Double} - * number types; integer types are casted to one of the floating point types. + * number types; integer types are cast to one of the floating point types. * * @param asFloat whether to restrict the returned range to floating point types. * @param minValue the minimal value, or {@code null} if none. @@ -399,7 +399,7 @@ public class NumberRange<E extends Number & Comparable<? super E>> extends Range } /** - * Returns {@code true} if the given value can be casted to the {@code Float} type. + * Returns {@code true} if the given value can be cast to the {@code Float} type. */ private static boolean isFloat(final Number value) { return (value == null) || @@ -492,7 +492,7 @@ public class NumberRange<E extends Number & Comparable<? super E>> extends Range } /** - * Constructs a range with the same values as the specified range, casted to the specified type. + * Constructs a range with the same values as the specified range, cast to the specified type. * * @param type the element type, usually one of {@link Byte}, {@link Short}, * {@link Integer}, {@link Long}, {@link Float} or {@link Double}. @@ -524,7 +524,7 @@ public class NumberRange<E extends Number & Comparable<? super E>> extends Range * * @param type the class to cast to. Must be one of {@link Byte}, {@link Short}, * {@link Integer}, {@link Long}, {@link Float} or {@link Double}. - * @return the casted range, or {@code range} if no cast is needed. + * @return the cast range, or {@code range} if no cast is needed. * @throws IllegalArgumentException if the given type is not one of the primitive wrappers for numeric types. */ @SuppressWarnings("unchecked") @@ -544,7 +544,7 @@ public class NumberRange<E extends Number & Comparable<? super E>> extends Range * @param <N> the class to cast to. * @param type the class to cast to. Must be one of {@link Byte}, {@link Short}, * {@link Integer}, {@link Long}, {@link Float} or {@link Double}. - * @return the casted range, or {@code this} if this range already uses the specified type. + * @return the cast range, or {@code this} if this range already uses the specified type. * @throws IllegalArgumentException if the given type is not one of the primitive wrappers for numeric types. */ @SuppressWarnings("unchecked") diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/Scalar.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/Scalar.java index ee2484783d..32402d5e9e 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/Scalar.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/measure/Scalar.java @@ -152,7 +152,7 @@ class Scalar<Q extends Quantity<Q>> extends Number implements Quantity<Q>, Compa } /** - * Returns the value casted to a single-precision floating point number. + * Returns the value cast to a single-precision floating point number. */ @Override public float floatValue() { @@ -160,7 +160,7 @@ class Scalar<Q extends Quantity<Q>> extends Number implements Quantity<Q>, Compa } /** - * Returns the value rounded to nearest integer. {@link Double#NaN} are casted to 0 and values out of + * Returns the value rounded to nearest integer. {@link Double#NaN} are cast to 0 and values out of * {@code long} range are clamped to minimal or maximal representable numbers of {@code long} type. */ @Override @@ -169,7 +169,7 @@ class Scalar<Q extends Quantity<Q>> extends Number implements Quantity<Q>, Compa } /** - * Returns the value rounded to nearest integer. {@link Double#NaN} are casted to 0 and values out of + * Returns the value rounded to nearest integer. {@link Double#NaN} are cast to 0 and values out of * {@code int} range are clamped to minimal or maximal representable numbers of {@code int} type. */ @Override @@ -178,7 +178,7 @@ class Scalar<Q extends Quantity<Q>> extends Number implements Quantity<Q>, Compa } /** - * Returns the value rounded to nearest integer. {@link Double#NaN} are casted to 0 and values out of + * Returns the value rounded to nearest integer. {@link Double#NaN} are cast to 0 and values out of * {@code short} range are clamped to minimal or maximal representable numbers of {@code short} type. */ @Override @@ -187,7 +187,7 @@ class Scalar<Q extends Quantity<Q>> extends Number implements Quantity<Q>, Compa } /** - * Returns the value rounded to nearest integer. {@link Double#NaN} are casted to 0 and values out of + * Returns the value rounded to nearest integer. {@link Double#NaN} are cast to 0 and values out of * {@code byte} range are clamped to minimal or maximal representable numbers of {@code byte} type. */ @Override diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/ArgumentChecks.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/ArgumentChecks.java index 22ee97dd46..e2f7b9a597 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/ArgumentChecks.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/ArgumentChecks.java @@ -306,7 +306,7 @@ public final class ArgumentChecks extends Static { /** * Ensures that the specified value is null or an instance assignable to the given type. - * If this method does not thrown an exception, then the value can be casted to the class + * If this method does not thrown an exception, then the value can be cast to the class * represented by {@code expectedType} without throwing a {@link ClassCastException}. * * @param name the name of the argument to be checked, used only if an exception is thrown. diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/ArraysExt.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/ArraysExt.java index ab0a4e9d6c..e3488a4952 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/ArraysExt.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/ArraysExt.java @@ -1988,10 +1988,10 @@ public final class ArraysExt extends Static { } /** - * Returns a copy of the given array where each value has been casted to the {@code long} type. + * Returns a copy of the given array where each value has been cast to the {@code long} type. * * @param data the array to copy, or {@code null}. - * @return a copy of the given array with values casted to the {@code long} type, + * @return a copy of the given array with values cast to the {@code long} type, * or {@code null} if the given array was null. * * @since 1.1 @@ -2006,11 +2006,11 @@ public final class ArraysExt extends Static { } /** - * Returns a copy of the given array where each value has been casted to the {@code double} type. + * Returns a copy of the given array where each value has been cast to the {@code double} type. * This method does not verify if the casts would cause data loss. * * @param data the array to copy, or {@code null}. - * @return a copy of the given array with values casted to the {@code double} type, + * @return a copy of the given array with values cast to the {@code double} type, * or {@code null} if the given array was null. * * @since 1.5 @@ -2025,11 +2025,11 @@ public final class ArraysExt extends Static { } /** - * Returns a copy of the given array where each value has been casted to the {@code float} type. + * Returns a copy of the given array where each value has been cast to the {@code float} type. * This method does not verify if the casts would cause data loss. * * @param data the array to copy, or {@code null}. - * @return a copy of the given array with values casted to the {@code float} type, + * @return a copy of the given array with values cast to the {@code float} type, * or {@code null} if the given array was null. * * @since 1.0 @@ -2044,7 +2044,7 @@ public final class ArraysExt extends Static { } /** - * Returns a copy of the given array where each value has been casted to the {@code float} type, + * Returns a copy of the given array where each value has been cast to the {@code float} type, * but only if all casts are lossless. If any cast causes data loss, then this method returns {@code null}. * This method is equivalent to the following code, but potentially more efficient: * @@ -2057,7 +2057,7 @@ public final class ArraysExt extends Static { * } * * @param data the array to copy, or {@code null}. - * @return a copy of the given array with values casted to the {@code float} type, or + * @return a copy of the given array with values cast to the {@code float} type, or * {@code null} if the given array was null or if a cast would cause data lost. * * @since 1.0 @@ -2097,14 +2097,14 @@ public final class ArraysExt extends Static { } /** - * Returns {@code true} if every values in the given {@code double} array could be casted to the + * Returns {@code true} if every values in the given {@code double} array could be cast to the * {@code float} type without data lost. If this method returns {@code true}, then the array can * be converted to the {@code float[]} type with {@link #copyAsFloats(double[])} and the exact * same {@code double} values can still be obtained by casting back each {@code float} value * to {@code double}. * * @param values the values to test for their precision, or {@code null}. - * @return {@code true} if every values can be casted to the {@code float} type without data lost. + * @return {@code true} if every values can be cast to the {@code float} type without data lost. * * @since 1.0 */ diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/Numbers.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/Numbers.java index 6eb972d4a4..94c6e0f30d 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/Numbers.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/Numbers.java @@ -445,9 +445,9 @@ asLong: if (mapping != null) { * * <ul> * <li>If the given value is {@code null}, then this method returns {@code null}.</li> - * <li>Otherwise if the given value cannot be casted from {@code double} to another type + * <li>Otherwise if the given value cannot be cast from {@code double} to another type * without precision lost, return {@code Double.class}.</li> - * <li>Otherwise if the given value cannot be casted from {@code float} to another type + * <li>Otherwise if the given value cannot be cast from {@code float} to another type * without precision lost, return {@code Float.class}.</li> * <li>Otherwise if the given value is between {@value java.lang.Byte#MIN_VALUE} and * {@value java.lang.Byte#MAX_VALUE}, then this method returns {@code Byte.class};</li> @@ -599,7 +599,7 @@ asLong: if (mapping != null) { * @param <N> the class to cast to. * @param number the number to cast, or {@code null}. * @param type the destination type. - * @return the number casted to the given type, or {@code null} if the given value was null. + * @return the number cast to the given type, or {@code null} if the given value was null. * @throws IllegalArgumentException if the given type is not supported by this {@code Numbers} class, * or the number cannot be converted to the specified type (e.g. {@link Double#NaN} cannot * be converted to {@link BigDecimal}). diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/Containers.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/Containers.java index fc374092bb..ec2b579c54 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/Containers.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/Containers.java @@ -215,9 +215,9 @@ public final class Containers extends Static { } /** - * Returns the value mapped to the given key casted to the given type, + * Returns the value mapped to the given key cast to the given type, * or {@code null} if the map is null or does not contain a value for the key. - * If the mapped value is non-null but cannot be casted to the given type, then this + * If the mapped value is non-null but cannot be cast to the given type, then this * method throws an {@link IllegalArgumentException} with a message of the form * <q>Property ‘{@code key}’ does not accept instances of ‘{@code value.class}’.</q>. * @@ -229,9 +229,9 @@ public final class Containers extends Static { * @param properties the map of properties from which to get a value, or {@code null} if none. * @param key the key of the property value to return. Can be {@code null} if the map supports null key. * @param type the expected type of the property value. Cannot be null. - * @return the property value for the given key casted to the given type, or {@code null} if none. + * @return the property value for the given key cast to the given type, or {@code null} if none. * @throws IllegalArgumentException if a non-null property value exists for the given key but can - * not be casted to the given type. + * not be cast to the given type. * * @see ArgumentChecks#ensureCanCast(String, Class, Object) */ diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/DefaultTreeTable.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/DefaultTreeTable.java index f82de9c1a2..e971463017 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/DefaultTreeTable.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/collection/DefaultTreeTable.java @@ -539,7 +539,7 @@ public class DefaultTreeTable implements TreeTable, Cloneable, Serializable { * <p>For leaf nodes, this method returns an unmodifiable {@linkplain List#of() empty list}.</p> */ /* NOTE: If a future version removes the "final" keyword, then search for calls to - * this method where the return value is casted to TreeNodeList. Any unconditional + * this method where the return value is cast to TreeNodeList. Any unconditional * cast will need to be replaced by an "instanceof" check. */ @Override diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/privy/Constants.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/privy/Constants.java index 21595c5d94..367a8a185a 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/privy/Constants.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/privy/Constants.java @@ -51,13 +51,13 @@ public final class Constants extends Static { /** * The length of a day in number of seconds. - * Can be casted to {@code float} with exact precision. + * Can be cast to {@code float} with exact precision. */ public static final int SECONDS_PER_DAY = 24*60*60; /** * The length of a day in number of milliseconds. - * Can be casted to {@code float} with exact precision. + * Can be cast to {@code float} with exact precision. */ public static final int MILLISECONDS_PER_DAY = SECONDS_PER_DAY * 1000; @@ -68,19 +68,19 @@ public final class Constants extends Static { /** * Number of milliseconds in one second. - * Can be casted to {@code float} with exact precision. + * Can be cast to {@code float} with exact precision. */ public static final int MILLIS_PER_SECOND = 1000; /** * Number of nanoseconds in one millisecond. - * Can be casted to {@code float} with exact precision. + * Can be cast to {@code float} with exact precision. */ public static final int NANOS_PER_MILLISECOND = 1000_000; /** * Number of nanoseconds in one second. - * Can be casted to {@code float} with exact precision. + * Can be cast to {@code float} with exact precision. */ public static final int NANOS_PER_SECOND = 1000_000_000; diff --git a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/privy/Numerics.java b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/privy/Numerics.java index bbd5cf0e39..7d69c314da 100644 --- a/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/privy/Numerics.java +++ b/endorsed/src/org.apache.sis.util/main/org/apache/sis/util/privy/Numerics.java @@ -109,7 +109,7 @@ public final class Numerics extends Static { /** * Mask for the highest 32 bits of a long integers. - * It can be used for checking if a {@code long} can be casted as an unsigned integer. + * It can be used for checking if a {@code long} can be cast as an unsigned integer. */ public static final long HIGH_BITS_MASK = ~((1L << Integer.SIZE) - 1); diff --git a/endorsed/src/org.apache.sis.util/test/org/apache/sis/math/VectorTest.java b/endorsed/src/org.apache.sis.util/test/org/apache/sis/math/VectorTest.java index 170bcb6a23..f5e69f908d 100644 --- a/endorsed/src/org.apache.sis.util/test/org/apache/sis/math/VectorTest.java +++ b/endorsed/src/org.apache.sis.util/test/org/apache/sis/math/VectorTest.java @@ -141,7 +141,7 @@ public final class VectorTest extends TestCase { assertEquals(array.length, vector.size()); assertEquals(Byte.class, vector.getElementType()); /* - * Verify element values. Bytes shall be casted to shorts in order to handle unsigned values. + * Verify element values. Bytes shall be cast to shorts in order to handle unsigned values. * The widening casts should be unconditional, even for positive values that could fit in a byte, * because some codes using `Vector` expect a stable type (for example `NetcdfStore` which copies * vector values into feature properties). diff --git a/endorsed/src/org.apache.sis.util/test/org/apache/sis/measure/SystemUnitTest.java b/endorsed/src/org.apache.sis.util/test/org/apache/sis/measure/SystemUnitTest.java index dc0bba58d0..69fa8ebc72 100644 --- a/endorsed/src/org.apache.sis.util/test/org/apache/sis/measure/SystemUnitTest.java +++ b/endorsed/src/org.apache.sis.util/test/org/apache/sis/measure/SystemUnitTest.java @@ -281,7 +281,7 @@ public final class SystemUnitTest extends TestCase { assertSame(Units.METRE, anonymous.asType(Length.class)); assertSame(otherName, otherName.asType(Length.class)); /* - * Verify that the unit cannot be casted to an incompatible units. + * Verify that the unit cannot be cast to an incompatible units. */ for (final Unit<Length> unit : List.of(Units.METRE, anonymous, otherName)) { var e = assertThrows(ClassCastException.class, () -> unit.asType(Time.class)); diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix2D.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix2D.java index e576a2324f..54ea6b5638 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix2D.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix2D.java @@ -48,7 +48,7 @@ public final class Matrix2D extends Matrix2{ * verifies the matrix size, then copies all elements in a new {@code Matrix2D} object. * * @param matrix the matrix to cast or copy, or {@code null}. - * @return the matrix argument if it can be safely casted (including {@code null} argument), + * @return the matrix argument if it can be safely cast (including {@code null} argument), * or a copy of the given matrix otherwise. * @throws IllegalArgumentException if the size of the given matrix is not {@value #SIZE}×{@value #SIZE}. */ diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix3D.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix3D.java index a6e71d1673..cf18ff13ee 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix3D.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix3D.java @@ -54,7 +54,7 @@ public class Matrix3D extends Matrix3{ * verifies the matrix size, then copies all elements in a new {@code Matrix3D} object. * * @param matrix the matrix to cast or copy, or {@code null}. - * @return the matrix argument if it can be safely casted (including {@code null} argument), + * @return the matrix argument if it can be safely cast (including {@code null} argument), * or a copy of the given matrix otherwise. * @throws IllegalArgumentException if the size of the given matrix is not {@value #SIZE}×{@value #SIZE}. */ diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix4D.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix4D.java index f2b9ef2e95..1b64ed3438 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix4D.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Matrix4D.java @@ -59,7 +59,7 @@ public class Matrix4D extends Matrix4 { * verifies the matrix size, then copies all elements in a new {@code Matrix4D} object. * * @param matrix the matrix to cast or copy, or {@code null}. - * @return the matrix argument if it can be safely casted (including {@code null} argument), + * @return the matrix argument if it can be safely cast (including {@code null} argument), * or a copy of the given matrix otherwise. * @throws IllegalArgumentException if the size of the given matrix is not {@value #SIZE}×{@value #SIZE}. */ diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Tuple.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Tuple.java index 4371d1c1a2..cbee7c1a88 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Tuple.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/Tuple.java @@ -162,7 +162,7 @@ public interface Tuple<T extends Tuple <T>> { /** * Tuple to array. * - * @return values as casted byte array + * @return values as cast byte array */ default byte[] toArrayByte() { byte[] buffer = new byte[getDimension()]; @@ -173,7 +173,7 @@ public interface Tuple<T extends Tuple <T>> { /** * Tuple to array. * - * @return values as casted short array + * @return values as cast short array */ default short[] toArrayShort() { short[] buffer = new short[getDimension()]; @@ -184,7 +184,7 @@ public interface Tuple<T extends Tuple <T>> { /** * Tuple to array. * - * @return values as casted integer array + * @return values as cast integer array */ default int[] toArrayInt() { int[] buffer = new int[getDimension()]; @@ -195,7 +195,7 @@ public interface Tuple<T extends Tuple <T>> { /** * Tuple to array. * - * @return values as casted float array + * @return values as cast float array */ default float[] toArrayFloat() { float[] buffer = new float[getDimension()]; diff --git a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/TupleArray.java b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/TupleArray.java index cb3df277a5..e390acae79 100644 --- a/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/TupleArray.java +++ b/incubator/src/org.apache.sis.geometry/main/org/apache/sis/geometries/math/TupleArray.java @@ -137,7 +137,7 @@ public interface TupleArray { } /** - * @return this array tuples as an interleaved array casted to bytes. + * @return this array tuples as an interleaved array cast to bytes. * Example : [x1,x2,x3, y1,y2,y3, ... z1, z2,z3] */ default byte[] toArrayByte() { @@ -145,7 +145,7 @@ public interface TupleArray { } /** - * @return this array tuples as an interleaved array casted to shorts. + * @return this array tuples as an interleaved array cast to shorts. * Example : [x1,x2,x3, y1,y2,y3, ... z1, z2,z3] */ default short[] toArrayShort() { @@ -153,7 +153,7 @@ public interface TupleArray { } /** - * @return this array tuples as an interleaved array casted to integers. + * @return this array tuples as an interleaved array cast to integers. * Example : [x1,x2,x3, y1,y2,y3, ... z1, z2,z3] */ default int[] toArrayInt() { @@ -161,7 +161,7 @@ public interface TupleArray { } /** - * @return this array tuples as an interleaved array casted to floats. + * @return this array tuples as an interleaved array cast to floats. * Example : [x1,x2,x3, y1,y2,y3, ... z1, z2,z3] */ default float[] toArrayFloat() { @@ -169,7 +169,7 @@ public interface TupleArray { } /** - * @return this array tuples as an interleaved array casted to doubles. + * @return this array tuples as an interleaved array cast to doubles. * Example : [x1,x2,x3, y1,y2,y3, ... z1, z2,z3] */ default double[] toArrayDouble() { @@ -179,7 +179,7 @@ public interface TupleArray { /** * @param offset index of the first tuple to copy * @param nbTuple number of tuples to copy - * @return this array tuples as an interleaved array casted to bytes. + * @return this array tuples as an interleaved array cast to bytes. * Example : [x1,x2,x3, y1,y2,y3, ... z1, z2,z3] */ default byte[] toArrayByte(int offset, int nbTuple) { @@ -196,7 +196,7 @@ public interface TupleArray { /** * @param offset index of the first tuple to copy * @param nbTuple number of tuples to copy - * @return this array tuples as an interleaved array casted to shorts. + * @return this array tuples as an interleaved array cast to shorts. * Example : [x1,x2,x3, y1,y2,y3, ... z1, z2,z3] */ default short[] toArrayShort(int offset, int nbTuple) { @@ -213,7 +213,7 @@ public interface TupleArray { /** * @param offset index of the first tuple to copy * @param nbTuple number of tuples to copy - * @return this array tuples as an interleaved array casted to integers. + * @return this array tuples as an interleaved array cast to integers. * Example : [x1,x2,x3, y1,y2,y3, ... z1, z2,z3] */ default int[] toArrayInt(int offset, int nbTuple) { @@ -230,7 +230,7 @@ public interface TupleArray { /** * @param offset index of the first tuple to copy * @param nbTuple number of tuples to copy - * @return this array tuples as an interleaved array casted to floats. + * @return this array tuples as an interleaved array cast to floats. * Example : [x1,x2,x3, y1,y2,y3, ... z1, z2,z3] */ default float[] toArrayFloat(int offset, int nbTuple) { @@ -247,7 +247,7 @@ public interface TupleArray { /** * @param offset index of the first tuple to copy * @param nbTuple number of tuples to copy - * @return this array tuples as an interleaved array casted to doubles. + * @return this array tuples as an interleaved array cast to doubles. * Example : [x1,x2,x3, y1,y2,y3, ... z1, z2,z3] */ default double[] toArrayDouble(int offset, int nbTuple) {
