Skip to content

Commit c6065f6

Browse files
authored
Merge pull request #194 from schwehr/codespell
codespell
2 parents aa6f028 + b7cb36b commit c6065f6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+136
-137
lines changed

CHANGES.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ Added JDOM_FEATURE constants to JDOMSource and JDOMResult which can be used
525525
with TransformerFactory.getFeature() to determine if the transformer natively
526526
supports JDOM.
527527

528-
Moved the printing of the line seperator after the doctype up to
528+
Moved the printing of the line separator after the doctype up to
529529
output(Document, Writer). This allows someone who doesn't want a newline
530530
after the decl to kludge it away.
531531

@@ -1052,7 +1052,7 @@ uses an Iterator. Should lighten the burden on outputting large documents.
10521052

10531053
Added CVS Id variable to the top of each file for better tracking.
10541054

1055-
Changed pi.getValue("nonexistant") to return null instead of "". Also made it
1055+
Changed pi.getValue("nonexistent") to return null instead of "". Also made it
10561056
so that any parse error aborts and clears the parse results.
10571057

10581058
Created a new implementations of clone() without any constructor calls.

contrib/src/java/org/jdom2/contrib/beans/DateUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static Date parseDate(String s) {
103103
return new Date(Long.parseLong(s));
104104
}
105105
catch (NumberFormatException nfe) {
106-
// Getting rediculous now...
106+
// Getting ridiculous now...
107107
}
108108

109109
ISO8601 iso = parseISO8601(s);

contrib/src/java/org/jdom2/contrib/ids/IdAttribute.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected Attribute setParent(Element parent) {
103103
if (this.getAttributeType() == Attribute.ID_TYPE) {
104104
Document doc;
105105

106-
// Udpate the owning document's lookup table.
106+
// Update the owning document's lookup table.
107107
if (oldParent != null) {
108108
doc = oldParent.getDocument();
109109
if (doc instanceof IdDocument) {
@@ -125,7 +125,7 @@ public Attribute setValue(String value) {
125125
super.setValue(value);
126126

127127
if (this.getAttributeType() == Attribute.ID_TYPE) {
128-
// Udpate the owning document's lookup table.
128+
// Update the owning document's lookup table.
129129
Document doc = this.getDocument();
130130
if (doc instanceof IdDocument) {
131131
((IdDocument)doc).removeId(oldValue);
@@ -142,7 +142,7 @@ public Attribute setAttributeType(AttributeType type) {
142142
if (type != oldType) {
143143
super.setAttributeType(type);
144144

145-
// Udpate the owning document's lookup table.
145+
// Update the owning document's lookup table.
146146
Document doc = this.getDocument();
147147
if (doc instanceof IdDocument) {
148148
if (oldType == Attribute.ID_TYPE) {
@@ -156,4 +156,3 @@ public Attribute setAttributeType(AttributeType type) {
156156
return this;
157157
}
158158
}
159-

contrib/src/java/org/jdom2/contrib/input/LineNumberSAXHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
6666
import org.jdom2.input.sax.SAXHandlerFactory;
6767

6868
/**
69-
* This builder works in parallell with {@link LineNumberElement}
69+
* This builder works in parallel with {@link LineNumberElement}
7070
* to provide each element with information on its beginning and
7171
* ending line number in the corresponding source.
7272
* This only works for SAX parsers that supply that information, and

contrib/src/java/org/jdom2/contrib/input/scanner/ElementScanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public void setValidation(boolean validate) {
325325
}
326326

327327
/**
328-
* Specifies whether or not the parser should elminate whitespace
328+
* Specifies whether or not the parser should eliminate whitespace
329329
* in element content (sometimes known as "ignorable whitespace")
330330
* when building the document. Only whitespace which is contained
331331
* within element content that has an element only content model

contrib/src/java/org/jdom2/contrib/input/scanner/XPathMatcher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public abstract class XPathMatcher {
104104
"org.jdom2.contrib.input.scanner.JakartaRegExpXPathMatcher";
105105

106106
/**
107-
* The constructor to instanciate a new XPathMatcher concrete
107+
* The constructor to instantiate a new XPathMatcher concrete
108108
* implementation.
109109
*
110110
* @see #newXPathMatcher
@@ -225,7 +225,7 @@ protected static String getPathPatternAsRE(String expr)
225225
// It the expression ends with a square backet, a test part is
226226
// present. => Strip it!
227227
// Note: Any other sub-expression between square backet is view as
228-
// a RE alphabet definition and proccessed. OK, that's not
228+
// a RE alphabet definition and processed. OK, that's not
229229
// XPath compliant but that's very convenient!
230230
String path = (expr.endsWith("]"))?
231231
expr.substring(0, expr.lastIndexOf('[')): expr;

contrib/src/java/org/jdom2/contrib/perf/SavingVerifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public static final void closeWriters() throws IOException {
140140
}
141141

142142
/**
143-
* Ensure instantation cannot occur.
143+
* Ensure instantiation cannot occur.
144144
*/
145145
private SavingVerifier() { }
146146

contrib/src/java/org/jdom2/contrib/schema/Schema.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public class Schema {
169169
* @param type the schema type.
170170
*
171171
* @throws JDOMException if the schema document can not be
172-
* parsed according to the specfied type.
172+
* parsed according to the specified type.
173173
* @throws IOException if an I/O error occurred while reading
174174
* the schema document.
175175
*/
@@ -304,7 +304,7 @@ public List<ValidationError> validate(Element element) throws JDOMException {
304304
* @return the compiled schema.
305305
*
306306
* @throws JDOMException if the schema document can not be
307-
* parsed according to the specfied type.
307+
* parsed according to the specified type.
308308
* @throws IOException if an I/O error occurred while reading
309309
* the schema document.
310310
*/
@@ -327,7 +327,7 @@ public static Schema parse(String uri, Type type)
327327
* @return the compiled schema.
328328
*
329329
* @throws JDOMException if the schema document can not be
330-
* parsed according to the specfied type.
330+
* parsed according to the specified type.
331331
* @throws IOException if an I/O error occurred while reading
332332
* the schema document.
333333
*/
@@ -353,7 +353,7 @@ public static Schema parse(InputStream byteStream, Type type, String uri)
353353
* @return the compiled schema.
354354
*
355355
* @throws JDOMException if the schema document can not be
356-
* parsed according to the specfied type.
356+
* parsed according to the specified type.
357357
* @throws IOException if an I/O error occurred while reading
358358
* the schema document.
359359
*/
@@ -376,7 +376,7 @@ public static Schema parse(Reader reader, Type type, String uri)
376376
* @return the compiled schema.
377377
*
378378
* @throws JDOMException if the schema document can not be
379-
* parsed according to the specfied type.
379+
* parsed according to the specified type.
380380
* @throws IOException if an I/O error occurred while reading
381381
* the schema document.
382382
*/
@@ -393,14 +393,14 @@ public static Schema parse(File file, Type type)
393393
* according to the specified schema type and returns a compiled
394394
* schema object.
395395
*
396-
* @param source the SAX inout source to read the schema
396+
* @param source the SAX input source to read the schema
397397
* definition from.
398398
* @param type the schema type.
399399
*
400400
* @return the compiled schema.
401401
*
402402
* @throws JDOMException if the schema document can not be
403-
* parsed according to the specfied type.
403+
* parsed according to the specified type.
404404
* @throws IOException if an I/O error occurred while reading
405405
* the schema document.
406406
*/
@@ -452,7 +452,7 @@ public List<ValidationError> getErrors() {
452452
}
453453

454454
/**
455-
* Returns the JDOM node currently being ouputted by
455+
* Returns the JDOM node currently being outputted by
456456
* SAXOuputter.
457457
*
458458
* @return the current JDOM node.

contrib/src/java/org/jdom2/contrib/verifier/VerifierBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
7373
final public class VerifierBuilder {
7474

7575
/**
76-
* Ensure instantation cannot occur.
76+
* Ensure instantiation cannot occur.
7777
*/
7878
private VerifierBuilder() { }
7979

@@ -297,7 +297,7 @@ public static boolean isXMLNameCharacter(final char c) {
297297

298298
// remove check for || c == ':'
299299
// JDOM Attributes and Elements cannot start with ':' since JDOM
300-
// seperates the prefix from the name.
300+
// separates the prefix from the name.
301301
// we do not want ':' in the bitmask, instead we add it later.
302302

303303
return (isXMLLetter(c) || isXMLDigit(c) || c == '.' || c == '-'
@@ -320,7 +320,7 @@ public static boolean isXMLNameStartCharacter(final char c) {
320320

321321
// remove check for || c == ':'
322322
// JDOM Attributes and Elements cannot start with ':' since JDOM
323-
// seperates the prefix from the name.
323+
// separates the prefix from the name.
324324
// we do not want ':' in the bitmask, instead we add it later.
325325

326326
return (isXMLLetter(c) || c == '_');

contrib/src/java/org/jdom2/contrib/xpath/java/JavaXPathExpression.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private Object wrapContext(Object context) {
202202
case Text:
203203
return DOM.wrap((Text)context);
204204
}
205-
throw new IllegalStateException("Should never break out of swich");
205+
throw new IllegalStateException("Should never break out of switch");
206206
} else if (context instanceof Attribute) {
207207
return DOM.wrap((Attribute)context);
208208
} else if (context instanceof Document) {

0 commit comments

Comments
 (0)