Skip to content

Commit 5965ff0

Browse files
jsorefmichael-o
authored andcommitted
Spelling fixes
* accessible * acknowledgement * already * ampersand * and * architecture * argument * attempts * canonical * change * character * compaction * completed * constraint * contain * declared * default * delivered * destination * different * disposed * efficient * entity * even * exactly * exceeded * exception * exclude * exist * exists * expanded * failure * feature * for compacting * function * functionality * guarantee * ignore * immediately * interpreter * label * maintain * maximum * may * message * namespace * necessarily * null * occurrences * otherwise * override * parameters * parser * parts * paths * perform * platform * position * preceded * predecessor * prefix * present * reference * reporting * reserved * searched * separator * specification * specified * string * structure * subclasses * supports * sweeper * throwable * university * unsupported * vertex * visited This closes #19
1 parent 9df4f30 commit 5965ff0

37 files changed

+166
-166
lines changed

src/main/java/org/codehaus/plexus/util/CachedMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public CachedMap(int cacheSize) {
9696

9797
/**
9898
* Creates a cached map backed by the specified map and having the specified
99-
* cache size. In order to maitain cache veracity, it is critical
99+
* cache size. In order to maintain cache veracity, it is critical
100100
* that <b>all</b> update to the backing map is accomplished through the
101101
* {@link CachedMap} instance; otherwise {@link #flush} has to be called.
102102
*

src/main/java/org/codehaus/plexus/util/CollectionUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public static <T> Collection<T> subtract( final Collection<T> a, final Collectio
185185
/**
186186
* Returns a {@link Map} mapping each unique element in
187187
* the given {@link Collection} to an {@link Integer}
188-
* representing the number of occurances of that element
188+
* representing the number of occurrences of that element
189189
* in the {@link Collection}.
190190
* An entry that maps to <tt>null</tt> indicates that the
191191
* element does not appear in the given {@link Collection}.

src/main/java/org/codehaus/plexus/util/DirectoryScanner.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
* distribution.
1818
*
1919
* 3. The end-user documentation included with the redistribution, if
20-
* any, must include the following acknowlegement:
20+
* any, must include the following acknowledgement:
2121
* "This product includes software developed by the
2222
* Apache Software Foundation (http://www.codehaus.org/)."
23-
* Alternately, this acknowlegement may appear in the software itself,
24-
* if and wherever such third-party acknowlegements normally appear.
23+
* Alternately, this acknowledgement may appear in the software itself,
24+
* if and wherever such third-party acknowledgements normally appear.
2525
*
2626
* 4. The names "Ant" and "Apache Software
2727
* Foundation" must not be used to endorse or promote products derived
@@ -467,7 +467,7 @@ protected void scandir( File dir, String vpath, boolean fast )
467467
}
468468
catch ( IOException ioe )
469469
{
470-
String msg = "IOException caught while checking " + "for links, couldn't get cannonical path!";
470+
String msg = "IOException caught while checking " + "for links, couldn't get canonical path!";
471471
// will be caught and redirected to Ant's logging system
472472
System.err.println( msg );
473473
noLinks.add( newfile );

src/main/java/org/codehaus/plexus/util/ExceptionUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
* distribution.
1818
*
1919
* 3. The end-user documentation included with the redistribution, if
20-
* any, must include the following acknowlegement:
20+
* any, must include the following acknowledgement:
2121
* "This product includes software developed by the
2222
* Apache Software Foundation (http://www.codehaus.org/)."
23-
* Alternately, this acknowlegement may appear in the software itself,
24-
* if and wherever such third-party acknowlegements normally appear.
23+
* Alternately, this acknowledgement may appear in the software itself,
24+
* if and wherever such third-party acknowledgements normally appear.
2525
*
2626
* 4. The names "The Jakarta Project", "Commons", and "Apache Software
2727
* Foundation" must not be used to endorse or promote products derived

src/main/java/org/codehaus/plexus/util/Expand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
* distribution.
2020
*
2121
* 3. The end-user documentation included with the redistribution, if
22-
* any, must include the following acknowlegement:
22+
* any, must include the following acknowledgement:
2323
* "This product includes software developed by the
2424
* Apache Software Foundation (http://www.codehaus.org/)."
25-
* Alternately, this acknowlegement may appear in the software itself,
26-
* if and wherever such third-party acknowlegements normally appear.
25+
* Alternately, this acknowledgement may appear in the software itself,
26+
* if and wherever such third-party acknowledgements normally appear.
2727
*
2828
* 4. The names "The Jakarta Project", "Ant", and "Apache Software
2929
* Foundation" must not be used to endorse or promote products derived

src/main/java/org/codehaus/plexus/util/FastMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ private void addEntry(Object key, Object value) {
663663
entry = new EntryImpl();
664664
}
665665

666-
// Setup entry paramters.
666+
// Setup entry parameters.
667667
entry._key = key;
668668
entry._value = value;
669669
int index = keyHash(key) & _mask;

src/main/java/org/codehaus/plexus/util/FileUtils.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ public static String removePath( final String filepath )
901901
* </pre>
902902
*
903903
* @param filepath the path of the file
904-
* @param fileSeparatorChar the file separator character like <b>/</b> on Unix plateforms.
904+
* @param fileSeparatorChar the file separator character like <b>/</b> on Unix platforms.
905905
* @return the filename minus path
906906
*/
907907
public static String removePath( final String filepath, final char fileSeparatorChar )
@@ -941,7 +941,7 @@ public static String getPath( final String filepath )
941941
* </pre>
942942
*
943943
* @param filepath the filepath
944-
* @param fileSeparatorChar the file separator character like <b>/</b> on Unix plateforms.
944+
* @param fileSeparatorChar the file separator character like <b>/</b> on Unix platforms.
945945
* @return the filename minus path
946946
*/
947947
public static String getPath( final String filepath, final char fileSeparatorChar )
@@ -2019,7 +2019,7 @@ public static void copyDirectory( File sourceDirectory, File destinationDirector
20192019
* @param sourceDirectory the source dir
20202020
* @param destinationDirectory the target dir
20212021
* @param includes include pattern
2022-
* @param excludes exlucde pattern
2022+
* @param excludes exclude pattern
20232023
* @throws IOException if any
20242024
* @see #getFiles(File, String, String)
20252025
*/
@@ -2052,7 +2052,7 @@ public static void copyDirectory( File sourceDirectory, File destinationDirector
20522052
* @param sourceDirectory the source dir
20532053
* @param destinationDirectory the target dir
20542054
* @param includes include pattern
2055-
* @param excludes exlucde pattern
2055+
* @param excludes exclude pattern
20562056
* @throws IOException if any
20572057
* @since 1.5.7
20582058
*/
@@ -2338,7 +2338,7 @@ public static abstract class FilterWrapper
23382338
* @param encoding the file output encoding (only if wrappers is not empty)
23392339
* @param wrappers array of {@link FilterWrapper}
23402340
* @param overwrite if true and f wrappers is null or empty, the file will be copy
2341-
* enven if to.lastModified() < from.lastModified()
2341+
* even if to.lastModified() < from.lastModified()
23422342
* @throws IOException if an IO error occurs during copying or filtering
23432343
* @since 1.5.2
23442344
*/

src/main/java/org/codehaus/plexus/util/InterpolationFilterReader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
* distribution.
1818
*
1919
* 3. The end-user documentation included with the redistribution, if
20-
* any, must include the following acknowlegement:
20+
* any, must include the following acknowledgement:
2121
* "This product includes software developed by the
2222
* Apache Software Foundation (http://www.codehaus.org/)."
23-
* Alternately, this acknowlegement may appear in the software itself,
24-
* if and wherever such third-party acknowlegements normally appear.
23+
* Alternately, this acknowledgement may appear in the software itself,
24+
* if and wherever such third-party acknowledgements normally appear.
2525
*
2626
* 4. The names "Ant" and "Apache Software
2727
* Foundation" must not be used to endorse or promote products derived

src/main/java/org/codehaus/plexus/util/Os.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
* distribution.
1818
*
1919
* 3. The end-user documentation included with the redistribution, if
20-
* any, must include the following acknowlegement:
20+
* any, must include the following acknowledgement:
2121
* "This product includes software developed by the
2222
* Apache Software Foundation (http://www.apache.org/)."
23-
* Alternately, this acknowlegement may appear in the software itself,
24-
* if and wherever such third-party acknowlegements normally appear.
23+
* Alternately, this acknowledgement may appear in the software itself,
24+
* if and wherever such third-party acknowledgements normally appear.
2525
*
2626
* 4. The names "Ant" and "Apache Software
2727
* Foundation" must not be used to endorse or promote products derived
@@ -275,7 +275,7 @@ public static boolean isVersion( String version )
275275
* Determines if the current OS matches the given OS
276276
* family, name, architecture and version.
277277
*
278-
* The name, archictecture and version are compared to
278+
* The name, architecture and version are compared to
279279
* the System properties os.name, os.version and os.arch
280280
* in a case-independent way.
281281
*

src/main/java/org/codehaus/plexus/util/PathTool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public static final String calculateLink( String link, String relativePath )
245245
}
246246

247247
/**
248-
* This method can calculate the relative path between two pathes on a web site.
248+
* This method can calculate the relative path between two paths on a web site.
249249
* <br/>
250250
* <pre>
251251
* PathTool.getRelativeWebPath( null, null ) = ""
@@ -279,7 +279,7 @@ public static final String getRelativeWebPath( final String oldPath, final Strin
279279
}
280280

281281
/**
282-
* This method can calculate the relative path between two pathes on a file system.
282+
* This method can calculate the relative path between two paths on a file system.
283283
* <br/>
284284
* <pre>
285285
* PathTool.getRelativeFilePath( null, null ) = ""

src/main/java/org/codehaus/plexus/util/ReaderFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static XmlStreamReader newXmlReader( URL url )
133133
}
134134

135135
/**
136-
* Create a new Reader with default plaform encoding.
136+
* Create a new Reader with default platform encoding.
137137
*
138138
* @param in not null input stream.
139139
* @return a reader instance for the input stream using the default platform charset.
@@ -145,7 +145,7 @@ public static Reader newPlatformReader( InputStream in )
145145
}
146146

147147
/**
148-
* Create a new Reader with default plaform encoding.
148+
* Create a new Reader with default platform encoding.
149149
*
150150
* @param file not null file.
151151
* @return a reader instance for the input file using the default platform charset.
@@ -159,7 +159,7 @@ public static Reader newPlatformReader( File file )
159159
}
160160

161161
/**
162-
* Create a new Reader with default plaform encoding.
162+
* Create a new Reader with default platform encoding.
163163
*
164164
* @param url not null url.
165165
* @return a reader instance for the input url using the default platform charset.

src/main/java/org/codehaus/plexus/util/SelectorUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
* distribution.
1818
*
1919
* 3. The end-user documentation included with the redistribution, if
20-
* any, must include the following acknowlegement:
20+
* any, must include the following acknowledgement:
2121
* "This product includes software developed by the
2222
* Apache Software Foundation (http://www.codehaus.org/)."
23-
* Alternately, this acknowlegement may appear in the software itself,
24-
* if and wherever such third-party acknowlegements normally appear.
23+
* Alternately, this acknowledgement may appear in the software itself,
24+
* if and wherever such third-party acknowledgements normally appear.
2525
*
2626
* 4. The names "Ant" and "Apache Software
2727
* Foundation" must not be used to endorse or promote products derived
@@ -843,7 +843,7 @@ public static boolean isOutOfDate( File src, File target, int granularity )
843843
/**
844844
* "Flattens" a string by removing all whitespace (space, tab, linefeed,
845845
* carriage return, and formfeed). This uses StringTokenizer and the
846-
* default set of tokens as documented in the single arguement constructor.
846+
* default set of tokens as documented in the single argument constructor.
847847
*
848848
* @param input a String to remove all whitespace.
849849
* @return a String that has had all whitespace removed.

src/main/java/org/codehaus/plexus/util/StringUtils.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
* distribution.
1818
*
1919
* 3. The end-user documentation included with the redistribution, if
20-
* any, must include the following acknowlegement:
20+
* any, must include the following acknowledgement:
2121
* "This product includes software developed by the
2222
* Apache Software Foundation (http://www.codehaus.org/)."
23-
* Alternately, this acknowlegement may appear in the software itself,
24-
* if and wherever such third-party acknowlegements normally appear.
23+
* Alternately, this acknowledgement may appear in the software itself,
24+
* if and wherever such third-party acknowledgements normally appear.
2525
*
2626
* 4. The names "The Jakarta Project", "Commons", and "Apache Software
2727
* Foundation" must not be used to endorse or promote products derived
@@ -389,7 +389,7 @@ public static String substring( String str, int start )
389389
* count back from the end of the string by this many characters
390390
* @param end the position to end at (exclusive), negative means
391391
* count back from the end of the String by this many characters
392-
* @return substring from start position to end positon
392+
* @return substring from start position to end position
393393
*/
394394
public static String substring( String str, int start, int end )
395395
{
@@ -557,7 +557,7 @@ public static String[] split( String text, String separator )
557557
* <p>Splits the provided text into a array, based on a given separator.</p>
558558
*
559559
* <p>The separator is not included in the returned String array. The
560-
* maximum number of splits to perfom can be controlled. A <code>null</code>
560+
* maximum number of splits to perform can be controlled. A <code>null</code>
561561
* separator will cause parsing to be on whitespace.</p>
562562
*
563563
* <p>This is useful for quickly splitting a String directly into
@@ -717,7 +717,7 @@ public static String replaceOnce( String text, char repl, char with )
717717
}
718718

719719
/**
720-
* <p>Replace all occurances of a char within another char.</p>
720+
* <p>Replace all occurrences of a char within another char.</p>
721721
*
722722
* <p>A <code>null</code> reference passed to this method is a no-op.</p>
723723
*
@@ -766,7 +766,7 @@ public static String replaceOnce( String text, String repl, String with )
766766
}
767767

768768
/**
769-
* <p>Replace all occurances of a String within another String.</p>
769+
* <p>Replace all occurrences of a String within another String.</p>
770770
*
771771
* <p>A <code>null</code> reference passed to this method is a no-op.</p>
772772
*
@@ -1104,7 +1104,7 @@ public static String chopNewline( String str )
11041104
public static String escape( String str )
11051105
{
11061106
// improved with code from cybertiger@cyberiantiger.org
1107-
// unicode from him, and defaul for < 32's.
1107+
// unicode from him, and default for < 32's.
11081108
int sz = str.length();
11091109
StringBuilder buffer = new StringBuilder( 2 * sz );
11101110
for ( int i = 0; i < sz; i++ )
@@ -1703,7 +1703,7 @@ public static String getNestedString( String str, String open, String close )
17031703
*
17041704
* @param str the String to check
17051705
* @param sub the substring to count
1706-
* @return the number of occurances, 0 if the String is <code>null</code>
1706+
* @return the number of occurrences, 0 if the String is <code>null</code>
17071707
* @throws NullPointerException if sub is <code>null</code>
17081708
*/
17091709
public static int countMatches( String str, String sub )

src/main/java/org/codehaus/plexus/util/SweeperPool.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class SweeperPool
3434
/** Sweeps the pool periodically to trim it's size */
3535
private transient Sweeper sweeper;
3636

37-
/** Absolute maxiumuim size of the pool.*/
37+
/** Absolute maximum size of the pool.*/
3838
private transient int maxSize;
3939

4040
/** The size the pool gets trimmed down to */
@@ -61,7 +61,7 @@ public class SweeperPool
6161
* the sweeper runs. If the pool size is greater or equal than this value then
6262
* the pool is trimmed to <code>minSize</code>.</lie>
6363
* <li><code>maxSize</code> - if the pool has reached this size, any objects added
64-
* are immediatley disposed. If the pool is this size when the sweeper runs, then
64+
* are immediately disposed. If the pool is this size when the sweeper runs, then
6565
* the pool is also trimmed to <code>minSize</code> irrespective of the triggerSize.
6666
* </li>
6767
* <li><code>sweepInterval</code> - how often the sweeper runs. Is actually the
@@ -150,7 +150,7 @@ else if ( obj != null )
150150

151151
/**
152152
* Return the number of pooled objects. This is never
153-
* greater than t maximuim size of the pool
153+
* greater than t maximum size of the pool
154154
*
155155
* @return the number of pooled objects
156156
*/
@@ -176,7 +176,7 @@ public void dispose()
176176
}
177177
catch ( InterruptedException e )
178178
{
179-
System.err.println( "Unexpected execption occurred: " );
179+
System.err.println( "Unexpected exception occurred: " );
180180
e.printStackTrace();
181181
}
182182
}
@@ -290,7 +290,7 @@ public Sweeper( SweeperPool pool, int sweepInterval )
290290
}
291291

292292
/**
293-
* Run the seeper.
293+
* Run the sweeper.
294294
*
295295
* @see java.lang.Runnable#run()
296296
*/

0 commit comments

Comments
 (0)