Skip to content

Spelling #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/org/codehaus/plexus/util/CachedMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public CachedMap(int cacheSize) {

/**
* Creates a cached map backed by the specified map and having the specified
* cache size. In order to maitain cache veracity, it is critical
* cache size. In order to maintain cache veracity, it is critical
* that <b>all</b> update to the backing map is accomplished through the
* {@link CachedMap} instance; otherwise {@link #flush} has to be called.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public static <T> Collection<T> subtract( final Collection<T> a, final Collectio
/**
* Returns a {@link Map} mapping each unique element in
* the given {@link Collection} to an {@link Integer}
* representing the number of occurances of that element
* representing the number of occurrences of that element
* in the {@link Collection}.
* An entry that maps to <tt>null</tt> indicates that the
* element does not appear in the given {@link Collection}.
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/codehaus/plexus/util/DirectoryScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* any, must include the following acknowledgement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.codehaus.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
*
* 4. The names "Ant" and "Apache Software
* Foundation" must not be used to endorse or promote products derived
Expand Down Expand Up @@ -467,7 +467,7 @@ protected void scandir( File dir, String vpath, boolean fast )
}
catch ( IOException ioe )
{
String msg = "IOException caught while checking " + "for links, couldn't get cannonical path!";
String msg = "IOException caught while checking " + "for links, couldn't get canonical path!";
// will be caught and redirected to Ant's logging system
System.err.println( msg );
noLinks.add( newfile );
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/codehaus/plexus/util/ExceptionUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* any, must include the following acknowledgement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.codehaus.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
*
* 4. The names "The Jakarta Project", "Commons", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/codehaus/plexus/util/Expand.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* any, must include the following acknowledgement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.codehaus.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
*
* 4. The names "The Jakarta Project", "Ant", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/codehaus/plexus/util/FastMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ private void addEntry(Object key, Object value) {
entry = new EntryImpl();
}

// Setup entry paramters.
// Setup entry parameters.
entry._key = key;
entry._value = value;
int index = keyHash(key) & _mask;
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/org/codehaus/plexus/util/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ public static String removePath( final String filepath )
* </pre>
*
* @param filepath the path of the file
* @param fileSeparatorChar the file separator character like <b>/</b> on Unix plateforms.
* @param fileSeparatorChar the file separator character like <b>/</b> on Unix platforms.
* @return the filename minus path
*/
public static String removePath( final String filepath, final char fileSeparatorChar )
Expand Down Expand Up @@ -941,7 +941,7 @@ public static String getPath( final String filepath )
* </pre>
*
* @param filepath the filepath
* @param fileSeparatorChar the file separator character like <b>/</b> on Unix plateforms.
* @param fileSeparatorChar the file separator character like <b>/</b> on Unix platforms.
* @return the filename minus path
*/
public static String getPath( final String filepath, final char fileSeparatorChar )
Expand Down Expand Up @@ -2019,7 +2019,7 @@ public static void copyDirectory( File sourceDirectory, File destinationDirector
* @param sourceDirectory the source dir
* @param destinationDirectory the target dir
* @param includes include pattern
* @param excludes exlucde pattern
* @param excludes exclude pattern
* @throws IOException if any
* @see #getFiles(File, String, String)
*/
Expand Down Expand Up @@ -2052,7 +2052,7 @@ public static void copyDirectory( File sourceDirectory, File destinationDirector
* @param sourceDirectory the source dir
* @param destinationDirectory the target dir
* @param includes include pattern
* @param excludes exlucde pattern
* @param excludes exclude pattern
* @throws IOException if any
* @since 1.5.7
*/
Expand Down Expand Up @@ -2338,7 +2338,7 @@ public static abstract class FilterWrapper
* @param encoding the file output encoding (only if wrappers is not empty)
* @param wrappers array of {@link FilterWrapper}
* @param overwrite if true and f wrappers is null or empty, the file will be copy
* enven if to.lastModified() < from.lastModified()
* even if to.lastModified() < from.lastModified()
* @throws IOException if an IO error occurs during copying or filtering
* @since 1.5.2
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* any, must include the following acknowledgement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.codehaus.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
*
* 4. The names "Ant" and "Apache Software
* Foundation" must not be used to endorse or promote products derived
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/codehaus/plexus/util/Os.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* any, must include the following acknowledgement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
*
* 4. The names "Ant" and "Apache Software
* Foundation" must not be used to endorse or promote products derived
Expand Down Expand Up @@ -275,7 +275,7 @@ public static boolean isVersion( String version )
* Determines if the current OS matches the given OS
* family, name, architecture and version.
*
* The name, archictecture and version are compared to
* The name, architecture and version are compared to
* the System properties os.name, os.version and os.arch
* in a case-independent way.
*
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/codehaus/plexus/util/PathTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public static final String calculateLink( String link, String relativePath )
}

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

/**
* This method can calculate the relative path between two pathes on a file system.
* This method can calculate the relative path between two paths on a file system.
* <br/>
* <pre>
* PathTool.getRelativeFilePath( null, null ) = ""
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/codehaus/plexus/util/ReaderFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public static XmlStreamReader newXmlReader( URL url )
}

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

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

/**
* Create a new Reader with default plaform encoding.
* Create a new Reader with default platform encoding.
*
* @param url not null url.
* @return a reader instance for the input url using the default platform charset.
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/codehaus/plexus/util/SelectorUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* any, must include the following acknowledgement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.codehaus.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
*
* 4. The names "Ant" and "Apache Software
* Foundation" must not be used to endorse or promote products derived
Expand Down Expand Up @@ -843,7 +843,7 @@ public static boolean isOutOfDate( File src, File target, int granularity )
/**
* "Flattens" a string by removing all whitespace (space, tab, linefeed,
* carriage return, and formfeed). This uses StringTokenizer and the
* default set of tokens as documented in the single arguement constructor.
* default set of tokens as documented in the single argument constructor.
*
* @param input a String to remove all whitespace.
* @return a String that has had all whitespace removed.
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/org/codehaus/plexus/util/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* any, must include the following acknowledgement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.codehaus.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
*
* 4. The names "The Jakarta Project", "Commons", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
Expand Down Expand Up @@ -389,7 +389,7 @@ public static String substring( String str, int start )
* count back from the end of the string by this many characters
* @param end the position to end at (exclusive), negative means
* count back from the end of the String by this many characters
* @return substring from start position to end positon
* @return substring from start position to end position
*/
public static String substring( String str, int start, int end )
{
Expand Down Expand Up @@ -557,7 +557,7 @@ public static String[] split( String text, String separator )
* <p>Splits the provided text into a array, based on a given separator.</p>
*
* <p>The separator is not included in the returned String array. The
* maximum number of splits to perfom can be controlled. A <code>null</code>
* maximum number of splits to perform can be controlled. A <code>null</code>
* separator will cause parsing to be on whitespace.</p>
*
* <p>This is useful for quickly splitting a String directly into
Expand Down Expand Up @@ -717,7 +717,7 @@ public static String replaceOnce( String text, char repl, char with )
}

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

/**
* <p>Replace all occurances of a String within another String.</p>
* <p>Replace all occurrences of a String within another String.</p>
*
* <p>A <code>null</code> reference passed to this method is a no-op.</p>
*
Expand Down Expand Up @@ -1104,7 +1104,7 @@ public static String chopNewline( String str )
public static String escape( String str )
{
// improved with code from cybertiger@cyberiantiger.org
// unicode from him, and defaul for < 32's.
// unicode from him, and default for < 32's.
int sz = str.length();
StringBuilder buffer = new StringBuilder( 2 * sz );
for ( int i = 0; i < sz; i++ )
Expand Down Expand Up @@ -1703,7 +1703,7 @@ public static String getNestedString( String str, String open, String close )
*
* @param str the String to check
* @param sub the substring to count
* @return the number of occurances, 0 if the String is <code>null</code>
* @return the number of occurrences, 0 if the String is <code>null</code>
* @throws NullPointerException if sub is <code>null</code>
*/
public static int countMatches( String str, String sub )
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/org/codehaus/plexus/util/SweeperPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class SweeperPool
/** Sweeps the pool periodically to trim it's size */
private transient Sweeper sweeper;

/** Absolute maxiumuim size of the pool.*/
/** Absolute maximum size of the pool.*/
private transient int maxSize;

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

/**
* Return the number of pooled objects. This is never
* greater than t maximuim size of the pool
* greater than t maximum size of the pool
*
* @return the number of pooled objects
*/
Expand All @@ -176,7 +176,7 @@ public void dispose()
}
catch ( InterruptedException e )
{
System.err.println( "Unexpected execption occurred: " );
System.err.println( "Unexpected exceptionexception occurred: " );
e.printStackTrace();
}
}
Expand Down Expand Up @@ -290,7 +290,7 @@ public Sweeper( SweeperPool pool, int sweepInterval )
}

/**
* Run the seeper.
* Run the sweeper.
*
* @see java.lang.Runnable#run()
*/
Expand Down
Loading