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 0e0a37dc5fe621c36fa3c43e55fe11e79310ffb2 Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Sun Mar 5 15:54:43 2023 +0100 Minor documentation fixes in comments. --- .../src/main/java/org/apache/sis/cloud/aws/s3/CachedByteChannel.java | 2 +- .../sis/internal/referencing/provider/DatumShiftGridLoader.java | 4 ++-- .../src/main/java/org/apache/sis/internal/system/Configuration.java | 2 +- core/sis-utility/src/main/java/org/apache/sis/measure/SystemUnit.java | 2 +- .../src/test/java/org/apache/sis/measure/UnitFormatTest.java | 2 +- core/sis-utility/src/test/java/org/apache/sis/measure/UnitsTest.java | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cloud/sis-cloud-aws/src/main/java/org/apache/sis/cloud/aws/s3/CachedByteChannel.java b/cloud/sis-cloud-aws/src/main/java/org/apache/sis/cloud/aws/s3/CachedByteChannel.java index 66ada480a6..a93f3ba346 100644 --- a/cloud/sis-cloud-aws/src/main/java/org/apache/sis/cloud/aws/s3/CachedByteChannel.java +++ b/cloud/sis-cloud-aws/src/main/java/org/apache/sis/cloud/aws/s3/CachedByteChannel.java @@ -44,7 +44,7 @@ final class CachedByteChannel extends FileCacheByteChannel { * The connection will be opened when first needed. * * @param path path to the S3 file to open. - * @throws IOException if the temporary file can not be created. + * @throws IOException if the temporary file cannot be created. */ CachedByteChannel(final KeyPath path) throws IOException { super("S3-"); diff --git a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/DatumShiftGridLoader.java b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/DatumShiftGridLoader.java index 8f7e7919b2..edcbf5fa07 100644 --- a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/DatumShiftGridLoader.java +++ b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/DatumShiftGridLoader.java @@ -154,9 +154,9 @@ abstract class DatumShiftGridLoader { * * @param path the URI to make absolute. * @return an absolute (if possible) URI to the data. - * @throws NoSuchFileException if the path can not be made absolute. + * @throws NoSuchFileException if the path cannot be made absolute. * This exception is necessary for letting the caller know that the coordinate operation is - * probably valid but can not be constructed because an optional configuration is missing. + * probably valid but cannot be constructed because an optional configuration is missing. * It is typically because the {@code SIS_DATA} environment variable has not been set. */ static URI toAbsolutePath(final URI path) throws NoSuchFileException { diff --git a/core/sis-utility/src/main/java/org/apache/sis/internal/system/Configuration.java b/core/sis-utility/src/main/java/org/apache/sis/internal/system/Configuration.java index 5c30cf939c..936d2d0162 100644 --- a/core/sis-utility/src/main/java/org/apache/sis/internal/system/Configuration.java +++ b/core/sis-utility/src/main/java/org/apache/sis/internal/system/Configuration.java @@ -70,7 +70,7 @@ public @interface Configuration { /** * The configuration is modifiable through a public method * that must be invoked on a particular instance of a class. - * This configuration can not be easily moved to {@link #GLOBAL} + * This configuration cannot be easily moved to {@link #GLOBAL} * because it would require to decide on which instance to apply. */ INSTANCE, diff --git a/core/sis-utility/src/main/java/org/apache/sis/measure/SystemUnit.java b/core/sis-utility/src/main/java/org/apache/sis/measure/SystemUnit.java index e8f9c99db6..5b90beefd3 100644 --- a/core/sis-utility/src/main/java/org/apache/sis/measure/SystemUnit.java +++ b/core/sis-utility/src/main/java/org/apache/sis/measure/SystemUnit.java @@ -277,7 +277,7 @@ final class SystemUnit<Q extends Quantity<Q>> extends AbstractUnit<Q> implements } /** - * Casts this unit to a parameterized unit of specified nature or throw a {@code ClassCastException} + * Casts this unit to a parameterized unit of specified nature or throws a {@code ClassCastException} * if the dimension of the specified quantity and this unit's dimension do not match. * * @param <T> the type of the quantity measured by the unit. diff --git a/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java b/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java index 82b8d984c3..22dcbdd565 100644 --- a/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java +++ b/core/sis-utility/src/test/java/org/apache/sis/measure/UnitFormatTest.java @@ -133,7 +133,7 @@ public final class UnitFormatTest extends TestCase { } /** - * Verifies one of the constants declared in the {@link Unit} class. + * Verifies one of the constants declared in the {@link Units} class. * * @param declared a map from which to remove the {@code field} value, for verifying that we didn't forgot an element. * @param field the name of the constant to be verified. diff --git a/core/sis-utility/src/test/java/org/apache/sis/measure/UnitsTest.java b/core/sis-utility/src/test/java/org/apache/sis/measure/UnitsTest.java index 0cfe6162fd..9bcf8fe68f 100644 --- a/core/sis-utility/src/test/java/org/apache/sis/measure/UnitsTest.java +++ b/core/sis-utility/src/test/java/org/apache/sis/measure/UnitsTest.java @@ -31,7 +31,7 @@ import static org.apache.sis.test.Assert.*; /** - * Test conversions using the units declared in {@link Units}. + * Test parsing, formatting and other operations on the units declared in {@link Units}. * * @author Martin Desruisseaux (Geomatys) * @author Alexis Manin (Geomatys)