diff --git a/DEVELOPERS-GUIDE.html b/DEVELOPERS-GUIDE.html index 4dbf9b65e..d65f2e030 100644 --- a/DEVELOPERS-GUIDE.html +++ b/DEVELOPERS-GUIDE.html @@ -98,7 +98,7 @@ interface
Where the method in a Utils class is a decorator, the name shall consist of
-an adjective followed by the collection type. Typically such adjective is
+an adjective followed by the collection type. Typically, such adjective is
formed by appending an -ed suffix (meaning "having"/"characterized by") to the
word describing the type of decorator. For example,
* Unlike a normal {@code Map} the previous value is not replaced.
- * Instead the new value is added to the collection stored against the key.
+ * Instead, the new value is added to the collection stored against the key.
* The collection may be a {@code List}, {@code Set} or other
* collection dependent on implementation.
*
diff --git a/src/main/java/org/apache/commons/collections4/MultiSet.java b/src/main/java/org/apache/commons/collections4/MultiSet.java
index eef64f0ee..441b6a93c 100644
--- a/src/main/java/org/apache/commons/collections4/MultiSet.java
+++ b/src/main/java/org/apache/commons/collections4/MultiSet.java
@@ -63,7 +63,7 @@ public interface MultiSet
* If the object is already in the {@link #uniqueSet()} then increment its
- * count as reported by {@link #getCount(Object)}. Otherwise add it to the
+ * count as reported by {@link #getCount(Object)}. Otherwise, add it to the
* {@link #uniqueSet()} and report its count as 1.
*
* @param object the object to add
@@ -77,7 +77,7 @@ public interface MultiSet
* If the object is already in the {@link #uniqueSet()} then increment its
- * count as reported by {@link #getCount(Object)}. Otherwise add it to the
+ * count as reported by {@link #getCount(Object)}. Otherwise, add it to the
* {@link #uniqueSet()} and report its count as {@code occurrences}.
*
* @param object the object to add
diff --git a/src/main/java/org/apache/commons/collections4/MultiValuedMap.java b/src/main/java/org/apache/commons/collections4/MultiValuedMap.java
index e26a6d5ae..49bb1a9ad 100644
--- a/src/main/java/org/apache/commons/collections4/MultiValuedMap.java
+++ b/src/main/java/org/apache/commons/collections4/MultiValuedMap.java
@@ -120,7 +120,7 @@ public interface MultiValuedMap
* Unlike a normal {@code Map} the previous value is not replaced.
- * Instead the new value is added to the collection stored against the key.
+ * Instead, the new value is added to the collection stored against the key.
* Depending on the collection type used, duplicate key-value mappings may
* be allowed.
*
diff --git a/src/main/java/org/apache/commons/collections4/PredicateUtils.java b/src/main/java/org/apache/commons/collections4/PredicateUtils.java
index d2e0bbfc6..7e1bcbb2d 100644
--- a/src/main/java/org/apache/commons/collections4/PredicateUtils.java
+++ b/src/main/java/org/apache/commons/collections4/PredicateUtils.java
@@ -447,8 +447,8 @@ public class PredicateUtils {
/**
* Create a new Predicate that wraps a Transformer. The Transformer must
- * return either Boolean.TRUE or Boolean.FALSE otherwise a PredicateException
- * will be thrown.
+ * return either {@link Boolean#TRUE} or {@link Boolean#FALSE} otherwise a
+ * PredicateException will be thrown.
*
* @param
* Create a Builder with a predicate to validate elements against, then add any elements
* to the builder. Elements that fail the predicate will be added to a rejected list.
- * Finally create or decorate a collection using the createPredicated[List,Set,Bag,Queue] methods.
+ * Finally, create or decorate a collection using the createPredicated[List,Set,Bag,Queue] methods.
*
* An example:
*
* At the end of the code fragment above predicatedList is protected by the predicate supplied
- * to the builder and it contains item1 and item2.
+ * to the builder, and it contains item1 and item2.
*
* More elements can be added to the builder once a predicated collection has been created,
* but these elements will not be reflected in already created collections.
diff --git a/src/main/java/org/apache/commons/collections4/functors/WhileClosure.java b/src/main/java/org/apache/commons/collections4/functors/WhileClosure.java
index 68dbef351..1fa8ec27e 100644
--- a/src/main/java/org/apache/commons/collections4/functors/WhileClosure.java
+++ b/src/main/java/org/apache/commons/collections4/functors/WhileClosure.java
@@ -47,7 +47,7 @@ public class WhileClosure
* NOTE: As from version 4.0, the IteratorChain stores the iterators in a queue
- * and removes any reference to them as soon as they are not used anymore. Thus
+ * and removes any reference to them as soon as they are not used anymore. Thus,
* the methods {@code setIterator(Iterator)} and {@code getIterators()} have been
* removed and {@link #size()} will return the number of remaining iterators in
* the queue.
diff --git a/src/main/java/org/apache/commons/collections4/iterators/NodeListIterator.java b/src/main/java/org/apache/commons/collections4/iterators/NodeListIterator.java
index 544379e54..3b090c0bd 100644
--- a/src/main/java/org/apache/commons/collections4/iterators/NodeListIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/NodeListIterator.java
@@ -43,7 +43,7 @@ public class NodeListIterator implements Iterator
- * This method calls remove() on the underlying Iterator and it may
+ * This method calls remove() on the underlying Iterator, and it may
* throw an UnsupportedOperationException if the underlying Iterator
* does not support this method.
*
diff --git a/src/main/java/org/apache/commons/collections4/list/CursorableLinkedList.java b/src/main/java/org/apache/commons/collections4/list/CursorableLinkedList.java
index e01fd8dfe..394a7ea63 100644
--- a/src/main/java/org/apache/commons/collections4/list/CursorableLinkedList.java
+++ b/src/main/java/org/apache/commons/collections4/list/CursorableLinkedList.java
@@ -285,7 +285,7 @@ public class CursorableLinkedList
* (Violation) The {@code List} interface requires that this
- * method returns {@code true} always. However this class may return
+ * method returns {@code true} always. However, this class may return
* {@code false} because of the {@code Set} behavior.
*
* @param object the object to add
diff --git a/src/main/java/org/apache/commons/collections4/list/TreeList.java b/src/main/java/org/apache/commons/collections4/list/TreeList.java
index 9ab1ccd00..bfa1d9c06 100644
--- a/src/main/java/org/apache/commons/collections4/list/TreeList.java
+++ b/src/main/java/org/apache/commons/collections4/list/TreeList.java
@@ -210,7 +210,7 @@ public class TreeList
* This method runs in O(n + log m) time, where m is
diff --git a/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java b/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java
index da4df45c7..65207b975 100644
--- a/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java
@@ -435,7 +435,7 @@ public class ListOrderedMap
- * Thus the steps are: (1) remove the existing key-value mapping,
+ * Thus, the steps are: (1) remove the existing key-value mapping,
* then (2) insert the new key-value mapping at the position it
* would have been inserted had the remove not occurred.
*
diff --git a/src/main/java/org/apache/commons/collections4/map/MultiValueMap.java b/src/main/java/org/apache/commons/collections4/map/MultiValueMap.java
index 9f5085e70..af73df4b1 100644
--- a/src/main/java/org/apache/commons/collections4/map/MultiValueMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/MultiValueMap.java
@@ -252,7 +252,7 @@ public class MultiValueMap
* Unlike a normal {@code Map} the previous value is not replaced.
- * Instead the new value is added to the collection stored against the key.
+ * Instead, the new value is added to the collection stored against the key.
*
* @param key the key to store against
* @param value the value to add to the collection at the key
diff --git a/src/main/java/org/apache/commons/collections4/sequence/SequencesComparator.java b/src/main/java/org/apache/commons/collections4/sequence/SequencesComparator.java
index 327a7a5d6..212194877 100644
--- a/src/main/java/org/apache/commons/collections4/sequence/SequencesComparator.java
+++ b/src/main/java/org/apache/commons/collections4/sequence/SequencesComparator.java
@@ -162,9 +162,9 @@ public class SequencesComparator
- * If the user needs a very fine-grained access to the comparison result,
+ * If the user needs very fine-grained access to the comparison result,
* he needs to go through this script by providing a visitor implementing
* the {@link org.apache.commons.collections4.sequence.CommandVisitor} interface.
*
diff --git a/src/main/java/org/apache/commons/collections4/trie/KeyAnalyzer.java b/src/main/java/org/apache/commons/collections4/trie/KeyAnalyzer.java
index 5f54bd8c1..2225ab85b 100644
--- a/src/main/java/org/apache/commons/collections4/trie/KeyAnalyzer.java
+++ b/src/main/java/org/apache/commons/collections4/trie/KeyAnalyzer.java
@@ -46,7 +46,7 @@ public abstract class KeyAnalyzer
As the size of the component increased, the iterators were broken out into their own subpackage.
-Thus there were now three packages, main, comparator and iterator.
+Thus, there were now three packages, main, comparator and iterator.
@@ -85,7 +85,7 @@ Of course, backwards compatibility has been retained during all transitions usin
Collections 2.1.1 was a patch release to version 2.1.
Unfortunately, version 3.0 created a binary incompatibility in the IteratorUtils class.
-This patch was created as a work around, enabling 2.1.1 to be compatible with 3.1.
+This patch was created as a workaround, enabling 2.1.1 to be compatible with 3.1.
synchronizedMap(Map)
or predicatedSet(Set)
.
diff --git a/src/main/java/org/apache/commons/collections4/MapUtils.java b/src/main/java/org/apache/commons/collections4/MapUtils.java
index dd9280c01..047643713 100644
--- a/src/main/java/org/apache/commons/collections4/MapUtils.java
+++ b/src/main/java/org/apache/commons/collections4/MapUtils.java
@@ -1955,7 +1955,7 @@ public class MapUtils {
* If the contents of a map include the map itself, then the text (this Map) is printed out. If the
* contents include a parent container of the map, the text (ancestor[i] Map) is printed, where it actually
* indicates the number of levels which must be traversed in the sequential list of ancestors (e.g. father,
- * grandfather, great-grandfather, etc).
+ * grandfather, great-grandfather, etc.).
*
* @param out the stream to print to
* @param label the label to be used, may be {@code null}. If {@code null}, the label is not output. It
diff --git a/src/main/java/org/apache/commons/collections4/MultiMap.java b/src/main/java/org/apache/commons/collections4/MultiMap.java
index bbcc348c9..bee6f8419 100644
--- a/src/main/java/org/apache/commons/collections4/MultiMap.java
+++ b/src/main/java/org/apache/commons/collections4/MultiMap.java
@@ -123,7 +123,7 @@ public interface MultiMap
@@ -193,7 +193,7 @@ public class PredicatedCollection
*