Skip to content

Commit 19c195b

Browse files
committed
Fix spelling and grammatical errors.
1 parent 02268bc commit 19c195b

15 files changed

Lines changed: 22 additions & 22 deletions

File tree

geoapi-conformance/src/main/java/org/opengis/test/dataset/ContentVerifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* </ol>
6060
*
6161
* Subclasses can also override {@link #comparePropertyValue comparePropertyValue(…)}
62-
* for finer grain control the the properties to be compared.
62+
* for finer grain control the properties to be compared.
6363
*
6464
* @author Martin Desruisseaux (Geomatys)
6565
* @version 4.0

geoapi-conformance/src/main/java/org/opengis/test/referencing/ParameterValidator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ public <T> void validate(final ParameterDescriptor<T> object) {
126126
assertInstanceOf(valueClass, def, "ParameterDescriptor: getDefaultValue() returns unexpected value.");
127127
assertBetween(min, max, def, "ParameterDescriptor: getDefaultValue() out of range.");
128128
}
129-
assertBetween(0, 1, object.getMinimumOccurs(), "ParameterDescriptor: getMinimumOccurs() shall returns 0 or 1.");
130-
assertEquals(1, object.getMaximumOccurs(), "ParameterDescriptor: getMaximumOccurs() shall returns exactly 1.");
129+
assertBetween(0, 1, object.getMinimumOccurs(), "ParameterDescriptor: getMinimumOccurs() shall return 0 or 1.");
130+
assertEquals(1, object.getMaximumOccurs(), "ParameterDescriptor: getMaximumOccurs() shall return exactly 1.");
131131
}
132132

133133
/**

geoapi-conformance/src/main/java/org/opengis/test/referencing/ReferencingTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ protected void verifyVerticalExtent(final Extent extent,
476476
*
477477
* <ul>
478478
* <li>Temporal extents are considered optional. If the given {@code extent} does not contain any
479-
* {@code TemporalExtent} element, or if extent bounds can not be represented as {@link Instant}
479+
* {@code TemporalExtent} element, or if extent bounds cannot be represented as {@link Instant}
480480
* objects, then this method does nothing.</li>
481481
* <li>If the given {@code extent} contains more than one {@code TemporalExtent} element,
482482
* then the union of them is compared against the given bound arguments.</li>

geoapi-pending/src/main/java/org/opengis/style/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*
3232
* <h2>Future evolution</h2>
3333
* This package is <em>not</em> part of GeoAPI release and may change deeply in a future development.
34-
* At the time that this package was created, no abstract model was available and the only source of
34+
* At the time when this package was created, no abstract model was available and the only source of
3535
* class definitions was the XML encoding. But later on, the ISO 19117:2012 specification has been
3636
* published with the UML of an abstract model that could be used for deriving the Java interfaces.
3737
* Furthermore as of 2023, various OGC working groups are actively working on new style and symbology API.

geoapi/src/main/java/org/opengis/coordinate/CoordinateSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
/**
3636
* A collection of coordinate tuples referenced to the same coordinate reference system (<abbr>CRS</abbr>).
37-
* If the <abbr>CRS</abbr> is dynamic, the {@code CoordinateSet} metadata contains also a coordinate epoch.
37+
* If the <abbr>CRS</abbr> is dynamic, the {@code CoordinateSet} metadata also contains a coordinate epoch.
3838
* Operations on the geometry of the tuples within the coordinate set are valid only if all
3939
* tuples are referenced to the same coordinate epoch.
4040
*

geoapi/src/main/java/org/opengis/filter/TemporalOperatorName.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public final class TemporalOperatorName extends CodeList<TemporalOperatorName> {
204204
}
205205

206206
/**
207-
* The temporal operator which produces the same results than this operator when the argument order is reversed.
207+
* The temporal operator which produces the same results as this operator when the argument order is reversed.
208208
* May be {@code null} if unknown.
209209
*/
210210
private TemporalOperatorName reversed;
@@ -231,7 +231,7 @@ private TemporalOperatorName(final String name, final TemporalOperatorName rever
231231
}
232232

233233
/**
234-
* Returns the operator which produces the same results than this operator when the argument order is reversed.
234+
* Returns the operator which produces the same results as this operator when the argument order is reversed.
235235
* For example, the reverse of {@link #BEFORE} is {@link #AFTER} and the reverse of {@link #CONTAINS} is {@link #DURING}.
236236
* The reverse of the reverse (if present) is always {@code this}.
237237
*

geoapi/src/main/java/org/opengis/referencing/operation/MathTransformFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public interface MathTransformFactory extends Factory {
103103
* Returns a builder for a parameterized math transform using the specified operation method.
104104
* The {@code method} argument should be the name or authority code of an {@link OperationMethod}
105105
* instance returned by <code>{@link #getAvailableMethods(Class) getAvailableMethods}(null)</code>.
106-
* A typical example is <cite>"Transverse Mercator"</cite>.
106+
* A typical example is <q>Transverse Mercator</q>.
107107
*
108108
* <p>While the use of authority codes is recommended for the {@code method} argument,
109109
* implementations should also accept method names when they are unambiguous (i.e., have exactly one match).

geoapi/src/main/java/org/opengis/temporal/Instant.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public interface Instant extends TemporalPrimitive {
6666
* In the case of {@link IndeterminateValue#NOW}, this method should return the current time.
6767
*
6868
* @departure harmonization
69-
* ISO 19108 defines this property as an union of {@code date8601}, {@code time8601}, {@code dateTime8601} or
69+
* ISO 19108 defines this property as a union of {@code date8601}, {@code time8601}, {@code dateTime8601} or
7070
* {@code anyOther} properties. Unions are not explicitly supported by the Java language, but the same result
7171
* is achieved with type hierarchy. The mappings of ISO 19103 {@code Date}, {@code Time} and {@code DateTime}
7272
* types are described in above Javadoc. The {@code TM_TemporalPosition} type used by the {@code anyOther}

geoapi/src/main/java/org/opengis/util/CodeList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static String cannotRead(final Class<?> codeType, final Object code) {
207207
*
208208
* @param <E> the compile-time type given as the {@code codeType} parameter.
209209
* @param codeType the type of the code list for which to get all elements.
210-
* @return all elements that are known at the time that this method is invoked.
210+
* @return all elements that are known at the time of this method invocation.
211211
* @throws InaccessibleObjectException if an element needs to be resolved by reflection and this operation failed.
212212
* A failure is generally caused by an error in the declaration of static fields in the code list.
213213
*/

geoapi/src/main/java/org/opengis/util/GenericName.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public interface GenericName extends Comparable<GenericName> {
226226
* the parsed names are the list of elements in yellow part of the <var>scope</var>.<var>this</var> column.</p>
227227
*
228228
* <div class="note"><b>Example:</b>
229-
* If {@code this} name is {@code "urn:ogc:def:crs:EPSG::4326"}, then this method shall returns a list
229+
* If {@code this} name is {@code "urn:ogc:def:crs:EPSG::4326"}, then this method shall return a list
230230
* containing {@code {"urn", "ogc", "def", "crs", "EPSG", "", "4326}} elements in that iteration order.
231231
* If this name is {@code "EPSG::4326"} in scope {@code "urn:ogc:def:crs"}, then this method shall
232232
* returns a list containing only {@code {"EPSG", "", "4326"}} elements.
@@ -253,7 +253,7 @@ public interface GenericName extends Comparable<GenericName> {
253253
* the heads are the blue elements in the <var>head</var>.<var>tail</var> column.</p>
254254
*
255255
* <div class="note"><b>Example:</b>
256-
* if {@code this} name is {@code "urn:ogc:def:crs:EPSG::4326"}, then this method shall returns {@code "urn"}.
256+
* if {@code this} name is {@code "urn:ogc:def:crs:EPSG::4326"}, then this method shall return {@code "urn"}.
257257
* </div>
258258
*
259259
* <div class="note"><b>Analogy:</b>
@@ -283,7 +283,7 @@ public interface GenericName extends Comparable<GenericName> {
283283
*
284284
* <div class="note"><b>Example:</b>
285285
* if {@code this} name is {@code "urn:ogc:def:crs:EPSG::4326"} (no matter its
286-
* {@linkplain #scope scope}), then this method shall returns {@code "4326"}.
286+
* {@linkplain #scope scope}), then this method shall return {@code "4326"}.
287287
* </div>
288288
*
289289
* <div class="note"><b>Analogy:</b>
@@ -307,7 +307,7 @@ public interface GenericName extends Comparable<GenericName> {
307307
/**
308308
* Returns a view of this name as a fully-qualified name. The {@linkplain #scope() scope}
309309
* of a fully qualified name must be {@linkplain NameSpace#isGlobal() global}. If the scope
310-
* of this name is already global, then this method shall returns {@code this}.
310+
* of this name is already global, then this method shall return {@code this}.
311311
*
312312
* <div class="note"><b>Example:</b>
313313
* if {@code this} name is {@code "EPSG::4326"} ({@linkplain #depth() depth} of 3) and its
@@ -350,7 +350,7 @@ public interface GenericName extends Comparable<GenericName> {
350350
*
351351
* <div class="note"><b>Example:</b>
352352
* if {@code this} name is {@code "EPSG::4326"} and the given {@code scope} argument is {@code "urn:ogc:def:crs"},
353-
* then {@code this.push(scope)} shall returns {@code "urn:ogc:def:crs:EPSG::4326"}.
353+
* then {@code this.push(scope)} shall return {@code "urn:ogc:def:crs:EPSG::4326"}.
354354
* </div>
355355
*
356356
* <div class="note"><b>Analogy:</b>

0 commit comments

Comments
 (0)