Skip to content

Commit

Permalink
Fix the the duplicates in code and supporting files (geoserver#7833)
Browse files Browse the repository at this point in the history
* Fix `the the` duplicates in code and supporting files

* spotless apply

---------

Co-authored-by: Peter Smythe <[email protected]>
  • Loading branch information
petersmythe and Peter Smythe authored Aug 16, 2024
1 parent cbc6a72 commit cd4b95b
Show file tree
Hide file tree
Showing 71 changed files with 130 additions and 133 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,6 @@ positive response, and those patches require little modifications, the
developer will be nominated for core commit access.

There is no magic number of patches that make the criteria, it is based mostly
on the nature of the patches, how in depth the they are, etc... Basically it
on the nature of the patches, how in depth they are, etc... Basically it
boils down to the developer being able to show that they understand the code base
well enough to not seriously break anything.
2 changes: 1 addition & 1 deletion build/cite/wms11/citewms-1.1/mbdemos/lib/model/Context.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $Id: Context.js,v 1.76 2005/03/06 04:14:50 madair1 Exp $

/**
* Stores a Web Map Context (WMC) document as defined by the Open GIS Consortium
* http://opengis.org and extensions the the WMC.
* http://opengis.org and extensions the WMC.
*
* Listeners supported by this model:
* "refresh" called when window parameters (width/height, bbox) are changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $Id: ContextCollection.js,v 1.9 2005/03/01 04:49:25 madair1 Exp $

/**
* Stores a Web Map Context (WMC) Collection document as defined by the Open
* GIS Consortium http://opengis.org and extensions the the WMC.
* GIS Consortium http://opengis.org and extensions the WMC.
* @constructor
* @base ModelBase
* @author Mike Adair
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $Id: WmsCapabilities.js,v 1.6 2005/03/06 04:14:51 madair1 Exp $

/**
* Stores a Web Map Server (WMS) Capabilities document as defined by the
* Open Geospatial Consortium (http://opengis.org and extensions the the WMC.
* Open Geospatial Consortium (http://opengis.org and extensions the WMC.
*
* @constructor
* @author Mike Adair
Expand Down
2 changes: 1 addition & 1 deletion doc/en/developer/source/policies/committing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ positive response, and those patches require little modifications, the
developer will be nominated for core commit access.

There is no magic number of patches that make the criteria, it is based mostly
on the nature of the patches, how in depth the they are, etc... Basically it
on the nature of the patches, how in depth they are, etc... Basically it
boils down to the developer being able to show that they understand the code base
well enough to not seriously break anything.

Expand Down
2 changes: 1 addition & 1 deletion doc/en/user/source/extensions/mapml/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ With the MapML Extension module installed, the GeoServer Layer Preview page is m

.. figure:: images/mapml_preview_ui.png

You can add layers to the map as you like, by dragging the URL bar value generated by the the Layer Preview WMS formats dropdown menu selection of "MapML" as shown below, and dropping it onto another layer's MapML preview:
You can add layers to the map as you like, by dragging the URL bar value generated by the Layer Preview WMS formats dropdown menu selection of "MapML" as shown below, and dropping it onto another layer's MapML preview:

.. figure:: images/mapml_wms_format_dropdown.png

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
*/
public class Cancel extends AbstractAsn1Object
{
/** The Id of the the message to cancel */
/** The Id of the message to cancel */
private int cancelId;

/** Length of the sequence */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public T getNormalizedValue()


/**
* Gets a reference to the the normalized (canonical) representation
* Gets a reference to the normalized (canonical) representation
* for the wrapped value.
*
* @return gets a reference to the normalized value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public String getNormalizedValue()


/**
* Gets a copy of the the normalized (canonical) representation
* Gets a copy of the normalized (canonical) representation
* for the wrapped value.
*
* @return gets a copy of the normalized value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public interface Value<T> extends Cloneable, Externalizable, Comparable<Value<T>


/**
* Gets a reference to the the normalized (canonical) representation
* Gets a reference to the normalized (canonical) representation
* for the wrapped value.
*
* @return gets a reference to the normalized value
Expand All @@ -142,7 +142,7 @@ public interface Value<T> extends Cloneable, Externalizable, Comparable<Value<T>


/**
* Gets a copy of the the normalized (canonical) representation
* Gets a copy of the normalized (canonical) representation
* for the wrapped value.
*
* @return gets a copy of the normalized value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public DN( String upName ) throws LdapInvalidDnException
/**
* Creates a new instance of DN, using varargs to declare the RDNs. Each
* String is either a full RDN, or a couple of AttributeType DI and a value.
* If the String contains a '=' symbol, the the constructor will assume that
* If the String contains a '=' symbol, the constructor will assume that
* the String arg contains afull RDN, otherwise, it will consider that the
* following arg is the value.
* An example of usage would be :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ public void setSyntaxLength( int length )


/**
* Gets the the superior AttributeType of this AttributeType.
* Gets the superior AttributeType of this AttributeType.
*
* @return the superior AttributeType for this AttributeType
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class BaseSubtreeSpecification implements SubtreeSpecification
/**
* Creates a simple subtree whose administrative point is necessarily the
* base and all subordinates underneath (excluding those that are part of
* inner areas) are part of the the subtree.
* inner areas) are part of the subtree.
*/
@SuppressWarnings("unchecked")
public BaseSubtreeSpecification()
Expand Down Expand Up @@ -103,7 +103,7 @@ public BaseSubtreeSpecification(ExprNode refinement)
/**
* Creates a simple subtree whose administrative point above the base and
* all subordinates underneath the base (excluding those that are part of
* inner areas) are part of the the subtree.
* inner areas) are part of the subtree.
*
* @param base
* the base of the subtree relative to the administrative point
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public int indexOfThrowable( Class<?> type, int fromIndex )


/**
* Prints the stack trace of this exception the the standar error stream.
* Prints the stack trace of this exception the standar error stream.
*/
public void printStackTrace()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3757,7 +3757,7 @@ public static String uuidToString( byte[] bytes )
* converts the string representation of an UUID to bytes
*
* @param string the string representation of an UUID
* @return the bytes, null if the the syntax is not valid
* @return the bytes, null if the syntax is not valid
*/
public static byte[] uuidToBytes( String string )
{
Expand Down
2 changes: 1 addition & 1 deletion src/community/acl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ set up the ACL API client target URL and credentials.
### System Properties

If you choose to use Java System properties, add the following ones to the GeoServer JVM parameters,
the the appropriate values:
the appropriate values:

```
-Dgeoserver.acl.client.basePath=https://example.com/acl/api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public void close() {
outputBufferedWriter.close();
}
} catch (IOException ioe) {
throw new ItemStreamException("Unable to close the the ItemWriter", ioe);
throw new ItemStreamException("Unable to close the ItemWriter", ioe);
} finally {
if (!transactional) {
closeStream();
Expand All @@ -389,14 +389,14 @@ private void closeStream() {
fileChannel.close();
}
} catch (IOException ioe) {
throw new ItemStreamException("Unable to close the the ItemWriter", ioe);
throw new ItemStreamException("Unable to close the ItemWriter", ioe);
} finally {
try {
if (os != null) {
os.close();
}
} catch (IOException ioe) {
throw new ItemStreamException("Unable to close the the ItemWriter", ioe);
throw new ItemStreamException("Unable to close the ItemWriter", ioe);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/community/hz-cluster/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- Meaning of the different values :
PARTIAL-BUFFER2
- Partially buffers the first xKb to disk. Once that has buffered, the the
- Partially buffers the first xKb to disk. Once that has buffered, the
result is streamed to the user. This will allow for most errors to be caught
early.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public JMSAbstractGeoServerProducer() {
*
* @return a copy of the configuration object updated with others options coming from the
* RestDispatcherCallback<br>
* TODO use also options coming from the the GUI DispatcherCallback
* TODO use also options coming from the GUI DispatcherCallback
*/
protected Properties getProperties() {
// append options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public Object getMultiTiles(
return changeSet;
}

/** Checks if the the scale range actually hits a scale denominator in the gridset, */
/** Checks if the scale range actually hits a scale denominator in the gridset, */
private boolean rangeHitsGridset(GridSubset gridSubset, NumberRange<Double> scaleRange) {
GridSet gridSet = gridSubset.getGridSet();
for (int z = gridSubset.getZoomStart(); z <= gridSubset.getZoomStop(); z++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ paths:
tags:
- Capabilities
summary: Collection Information is the set of metadata which describes a single
collection, or in the the case of API-Coverages, a single Coverage.
collection, or in the case of API-Coverages, a single Coverage.
operationId: describeCollection
parameters:
- $ref: '#/components/parameters/collectionId'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected void buildPrevNextLinks(
|| queries.get(0).getTypeNames().size() != 1) {
LOGGER.log(
Level.INFO,
"Cannot build prev/next links, the the target typename is not known (or multiple type names available)");
"Cannot build prev/next links, the target typename is not known (or multiple type names available)");
return;
}
QName typeName = queries.get(0).getTypeNames().get(0);
Expand All @@ -56,8 +56,7 @@ protected void buildPrevNextLinks(
if (typeInfo == null) {
LOGGER.log(
Level.INFO,
"Cannot build prev/next links, the the target typename was not found: "
+ typeName);
"Cannot build prev/next links, the target typename was not found: " + typeName);
return;
}
String collectionName = typeInfo.prefixedName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1029,8 +1029,8 @@ protected boolean modifySecondaryAttribute(Name name, Object value, Filter mappe
* @param mainTypeFilter The filter to locate the main object
* @param value The value to be mapped and replaced
* @param tableName The secondary table name
* @param secondaryTableFilterSupplier A supplier going from the the main filter to the
* secondary table one
* @param secondaryTableFilterSupplier A supplier going from the main filter to the secondary
* table one
* @param featureBuilder Transforms the complex feature value in a feature collection for the
* secondary table, it will be inserted in place of the old values
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
<xs:attribute name="type" use="optional">
<xs:annotation>
<xs:documentation>
Contains the the MIME type of this image.
Contains the MIME type of this image.
Restrictions: The value
must be a valid MIME type.
</xs:documentation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ Example of values could be "NRT", "NOMINAL", "NTC" or "STC"</documentation>
</complexType>
<element name="DownlinkInformation" type="eop:DownlinkInformationType" substitutionGroup="gml:AbstractObject">
<annotation>
<documentation>Information about the the downlinking (to earth) of the data.</documentation>
<documentation>Information about the downlinking (to earth) of the data.</documentation>
</annotation>
</element>
<complexType name="DownlinkInformationType">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

/**
* The informix datasource that only takes the connection url and driver class as input in addition
* the the user name and password.
* the user name and password.
*
* @author Timothy De Bock
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ protected void write(
}
if (transformerException != null) {
throw new WFSException(
"Failed to run the the XSTL transformation", transformerException);
"Failed to run the XSTL transformation", transformerException);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public abstract class AbstractAppSchemaMockData extends SystemTestData
/** URI for gsml namespace. */
public static final String GSML_URI = "urn:cgi:xmlns:CGI:GeoSciML:2.0";

/** Schema location URL for the the top-level gsml XSD. */
/** Schema location URL for the top-level gsml XSD. */
public static final String GSML_SCHEMA_LOCATION_URL =
"http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
Also change upper to older and lower to younger in age element names and descriptions to avoid inherent ambiguity about what is older and what is younger.
Add gmlsf level 0 declartion in annotation element. Question: does having xsd:any element with unbounded cardinality violate level 0 proscription that max cardinality is 1? Stephen Richard, AZGS/USGIN -->
<!-- 2012-11-23: Manually added BoreholeView to xsd for v2.0 final release. Ollie Raymond, Geoscience Australia -->
<!-- 2013-07-08: version 2.0.1 - Manually corrected BoreholeView/specification_uri documentation note to read "URI referring the the GeoSciML Borehole feature...",
not "URI referring the the GeoSciML GeologicUnit feature..." Ollie Raymond. [email protected] -->
<!-- 2013-07-08: version 2.0.1 - Manually corrected BoreholeView/specification_uri documentation note to read "URI referring the GeoSciML Borehole feature...",
not "URI referring the GeoSciML GeologicUnit feature..." Ollie Raymond. [email protected] -->

<!-- ===================================================================================== -->

Expand Down Expand Up @@ -63,7 +63,7 @@ It is separate to, but harmonized with, GeoSciML and conforms to the level 0 of
</element>
<element name="name" type="string" minOccurs="0">
<annotation>
<documentation>Display name for the the Contact.</documentation>
<documentation>Display name for the Contact.</documentation>
</annotation>
</element>
<element name="description" type="string" minOccurs="0">
Expand Down Expand Up @@ -98,7 +98,7 @@ It is separate to, but harmonized with, GeoSciML and conforms to the level 0 of
</element>
<element name="specification_uri" type="string">
<annotation>
<documentation>URI referring the the GeoSciML Contact feature that describes the instance in detail. Mandatory propery - if not value is provided then a URI referring to a conctrolled concept explaining why the value is nil must be provided.</documentation>
<documentation>URI referring the GeoSciML Contact feature that describes the instance in detail. Mandatory propery - if not value is provided then a URI referring to a conctrolled concept explaining why the value is nil must be provided.</documentation>
</annotation>
</element>
<element name="metadata_uri" type="string">
Expand Down Expand Up @@ -145,7 +145,7 @@ It is separate to, but harmonized with, GeoSciML and conforms to the level 0 of
</element>
<element name="name" type="string" minOccurs="0">
<annotation>
<documentation>Display name for the the ShearDisplacementStructure.</documentation>
<documentation>Display name for the ShearDisplacementStructure.</documentation>
</annotation>
</element>
<element name="description" type="string" minOccurs="0">
Expand Down Expand Up @@ -225,7 +225,7 @@ It is separate to, but harmonized with, GeoSciML and conforms to the level 0 of
</element>
<element name="specification_uri" type="string">
<annotation>
<documentation>URI referring the the GeoSciML ShearDisplacementStructure feature that describes the instance in detail. Mandatory propery - if not value is provided then a URI referring to a conctrolled concept explaining why the value is nil must be provided.</documentation>
<documentation>URI referring the GeoSciML ShearDisplacementStructure feature that describes the instance in detail. Mandatory propery - if not value is provided then a URI referring to a conctrolled concept explaining why the value is nil must be provided.</documentation>
</annotation>
</element>
<element name="metadata_uri" type="string">
Expand Down Expand Up @@ -272,7 +272,7 @@ It is separate to, but harmonized with, GeoSciML and conforms to the level 0 of
</element>
<element name="name" type="string" minOccurs="0">
<annotation>
<documentation>Display name for the the GeologicalUnit.</documentation>
<documentation>Display name for the GeologicalUnit.</documentation>
</annotation>
</element>
<element name="description" type="string" minOccurs="0">
Expand Down Expand Up @@ -342,7 +342,7 @@ It is separate to, but harmonized with, GeoSciML and conforms to the level 0 of
</element>
<element name="specification_uri" type="string">
<annotation>
<documentation>URI referring the the GeoSciML GeologicUnit feature that describes the instance in detail. Mandatory propery - if not value is provided then a URI referring to a conctrolled concept explaining why the value is nil must be provided.</documentation>
<documentation>URI referring the GeoSciML GeologicUnit feature that describes the instance in detail. Mandatory propery - if not value is provided then a URI referring to a conctrolled concept explaining why the value is nil must be provided.</documentation>
</annotation>
</element>
<element name="metadata_uri" type="string">
Expand Down Expand Up @@ -389,7 +389,7 @@ It is separate to, but harmonized with, GeoSciML and conforms to the level 0 of
</element>
<element name="name" type="string" minOccurs="0">
<annotation>
<documentation>Display name for the the borehole.</documentation>
<documentation>Display name for the borehole.</documentation>
</annotation>
</element>
<element name="description" type="string" minOccurs="0">
Expand Down Expand Up @@ -474,7 +474,7 @@ It is separate to, but harmonized with, GeoSciML and conforms to the level 0 of
</element>
<element name="specification_uri" type="string">
<annotation>
<documentation>URI referring the the GeoSciML Borehole feature that describes the instance in detail. Mandatory property - if not value is provided then a URI referring to a controlled concept explaining why the value is nil must be provided.</documentation>
<documentation>URI referring the GeoSciML Borehole feature that describes the instance in detail. Mandatory property - if not value is provided then a URI referring to a controlled concept explaining why the value is nil must be provided.</documentation>
</annotation>
</element>
<element name="parentBorehole_uri" type="string" minOccurs="0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void close(FeatureIterator<F> close) {
/**
* Open a resource based Iterator, we will call close( iterator ).
*
* <p>Please subclass to provide your own iterator for the the ResourceCollection, note <code>
* <p>Please subclass to provide your own iterator for the ResourceCollection, note <code>
* iterator()</code> is implemented to call <code>open()</code> and track the results in for
* later <code>purge()</code>.
*
Expand Down
Loading

0 comments on commit cd4b95b

Please sign in to comment.