You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2003/08/31 15:03:12 UTC
cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections CursorableLinkedList.java CollectionUtils.java ClosureUtils.java BeanMap.java ArrayStack.java
scolebourne 2003/08/31 06:03:12
Modified: collections/src/java/org/apache/commons/collections
CursorableLinkedList.java CollectionUtils.java
ClosureUtils.java BeanMap.java ArrayStack.java
Log:
Javadoc spelling mistakes
bug 22843, from Janek Bogucki
Revision Changes Path
1.15 +7 -7 jakarta-commons/collections/src/java/org/apache/commons/collections/CursorableLinkedList.java
Index: CursorableLinkedList.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/CursorableLinkedList.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- CursorableLinkedList.java 24 Jun 2003 16:08:42 -0000 1.14
+++ CursorableLinkedList.java 31 Aug 2003 13:03:12 -0000 1.15
@@ -320,7 +320,7 @@
* elements of this list, initialized such that
* {@link ListIterator#next} will return the element at
* the specified index (if any) and {@link ListIterator#previous}
- * will return the element immediately preceeding it (if any).
+ * will return the element immediately preceding it (if any).
* Unlike {@link #iterator}, a cursor
* is not bothered by concurrent modifications to the
* underlying list.
@@ -848,7 +848,7 @@
}
/**
- * Informs all of my registerd cursors that they are now
+ * Informs all of my registered cursors that they are now
* invalid.
*/
protected void invalidateCursors() {
@@ -860,7 +860,7 @@
}
/**
- * Informs all of my registerd cursors that the specified
+ * Informs all of my registered cursors that the specified
* element was changed.
* @see #set(int,java.lang.Object)
*/
@@ -872,7 +872,7 @@
}
/**
- * Informs all of my registered cursors tha the specifed
+ * Informs all of my registered cursors that the specified
* element was just removed from my list.
*/
protected void broadcastListableRemoved(Listable elt) {
@@ -883,7 +883,7 @@
}
/**
- * Informs all of my registered cursors tha the specifed
+ * Informs all of my registered cursors that the specified
* element was just added to my list.
*/
protected void broadcastListableInserted(Listable elt) {
1.34 +7 -7 jakarta-commons/collections/src/java/org/apache/commons/collections/CollectionUtils.java
Index: CollectionUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/CollectionUtils.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- CollectionUtils.java 19 Jul 2003 00:30:08 -0000 1.33
+++ CollectionUtils.java 31 Aug 2003 13:03:12 -0000 1.34
@@ -233,7 +233,7 @@
/**
* 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 occurences 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}.
@@ -552,7 +552,7 @@
* Transforms all elements from inputCollection with the given transformer
* and adds them to the outputCollection.
* <p>
- * If the input transfomer is null, the result is an empty list.
+ * If the input transformer is null, the result is an empty list.
*
* @param inputCollection the collection to get the input from, may not be null
* @param transformer the transformer to use, may be null
@@ -569,7 +569,7 @@
* Transforms all elements from the inputIterator with the given transformer
* and adds them to the outputCollection.
* <p>
- * If the input iterator or transfomer is null, the result is an empty list.
+ * If the input iterator or transformer is null, the result is an empty list.
*
* @param inputIterator the iterator to get the input from, may be null
* @param transformer the transformer to use, may be null
@@ -585,7 +585,7 @@
* Transforms all elements from inputCollection with the given transformer
* and adds them to the outputCollection.
* <p>
- * If the input collection or transfomer is null, there is no change to the
+ * If the input collection or transformer is null, there is no change to the
* output collection.
*
* @param inputCollection the collection to get the input from, may be null
@@ -605,7 +605,7 @@
* Transforms all elements from the inputIterator with the given transformer
* and adds them to the outputCollection.
* <p>
- * If the input iterator or transfomer is null, there is no change to the
+ * If the input iterator or transformer is null, there is no change to the
* output collection.
*
* @param inputIterator the iterator to get the input from, may be null
1.2 +4 -4 jakarta-commons/collections/src/java/org/apache/commons/collections/ClosureUtils.java
Index: ClosureUtils.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/ClosureUtils.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ClosureUtils.java 16 May 2003 13:41:10 -0000 1.1
+++ ClosureUtils.java 31 Aug 2003 13:03:12 -0000 1.2
@@ -417,7 +417,7 @@
Closure[] trs = null;
Predicate[] preds = null;
if (objectsAndClosures == null) {
- throw new IllegalArgumentException("The obejct and closure map must not be null");
+ throw new IllegalArgumentException("The object and closure map must not be null");
}
Closure def = (Closure) objectsAndClosures.remove(null);
int size = objectsAndClosures.size();
@@ -643,7 +643,7 @@
//----------------------------------------------------------------------------------
/**
- * ForClosure calls the closure a fixed nunmber of times.
+ * ForClosure calls the closure a fixed number of times.
*/
private static class ForClosure implements Closure, Serializable {
/** The number of times to loop */
1.20 +4 -4 jakarta-commons/collections/src/java/org/apache/commons/collections/BeanMap.java
Index: BeanMap.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/BeanMap.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- BeanMap.java 11 May 2003 14:15:23 -0000 1.19
+++ BeanMap.java 31 Aug 2003 13:03:12 -0000 1.20
@@ -214,7 +214,7 @@
* <li>If the instantiation fails, throw a CloneNotSupportedException
*
* <li>Clone the bean map and set the newly instantiated bean as the
- * underyling bean for the bean map.
+ * underlying bean for the bean map.
*
* <li>Copy each property that is both readable and writable from the
* existing object to a cloned bean map.
@@ -788,7 +788,7 @@
* primitive type, this method returns the original value.
*
* @param newType the type to convert the value to
- * @param value the value to conert
+ * @param value the value to convert
* @return the converted value
* @throws NumberFormatException if newType is a primitive type, and
* the string representation of the given value cannot be converted
1.12 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/ArrayStack.java
Index: ArrayStack.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/ArrayStack.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ArrayStack.java 11 May 2003 14:15:24 -0000 1.11
+++ ArrayStack.java 31 Aug 2003 13:03:12 -0000 1.12
@@ -110,7 +110,7 @@
/**
* Return <code>true</code> if this stack is currently empty.
* <p>
- * This method exists for compatability with <code>java.util.Stack</code>.
+ * This method exists for compatibility with <code>java.util.Stack</code>.
* New users of this class should use <code>isEmpty</code> instead.
*
* @return true if the stack is currently empty