Skip to content

Commit de7f14b

Browse files
committed
Fix malformed Javadoc comments
1 parent 9949ab1 commit de7f14b

27 files changed

+202
-183
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<action type="fix" dev="ggregory" due-to="Gary Gregory" >Fix SortedProperties.stringPropertyNames() returned an unsorted Set.</action>
4242
<action type="fix" dev="ggregory" due-to="Gary Gregory" >Fix SortedProperties.forEach() called its consumer out of order.</action>
4343
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix Apache RAT plugin console warnings.</action>
44+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix malformed Javadoc comments.</action>
4445
<!-- ADD -->
4546
<action type="add" dev="ggregory" due-to="Gary Gregory">Add generics to UnmodifiableIterator for the wrapped type.</action>
4647
<action type="add" dev="ggregory" due-to="Gary Gregory">Add a Maven benchmark profile for JMH.</action>

src/main/java/org/apache/commons/collections4/ClosureUtils.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,25 @@
3535
* {@code ClosureUtils} provides reference implementations and utilities
3636
* for the Closure functor interface. The supplied closures are:
3737
* <ul>
38-
* <li>Invoker - invokes a method on the input object
39-
* <li>For - repeatedly calls a closure for a fixed number of times
40-
* <li>While - repeatedly calls a closure while a predicate is true
41-
* <li>Chained - chains two or more closures together
42-
* <li>If - calls one closure or another based on a predicate
43-
* <li>Switch - calls one closure based on one or more predicates
44-
* <li>SwitchMap - calls one closure looked up from a Map
45-
* <li>Transformer - wraps a Transformer as a Closure
46-
* <li>NOP - does nothing
47-
* <li>Exception - always throws an exception
38+
* <li>Invoker - invokes a method on the input object</li>
39+
* <li>For - repeatedly calls a closure for a fixed number of times</li>
40+
* <li>While - repeatedly calls a closure while a predicate is true</li>
41+
* <li>Chained - chains two or more closures together</li>
42+
* <li>If - calls one closure or another based on a predicate</li>
43+
* <li>Switch - calls one closure based on one or more predicates</li>
44+
* <li>SwitchMap - calls one closure looked up from a Map</li>
45+
* <li>Transformer - wraps a Transformer as a Closure</li>
46+
* <li>NOP - does nothing</li>
47+
* <li>Exception - always throws an exception</li>
4848
* </ul>
4949
* <p>
5050
* Since v4.1 only closures which are considered to be safe are
5151
* Serializable. Closures considered to be unsafe for serialization are:
5252
* </p>
5353
* <ul>
54-
* <li>Invoker
55-
* <li>For
56-
* <li>While
54+
* <li>Invoker</li>
55+
* <li>For</li>
56+
* <li>While</li>
5757
* </ul>
5858
*
5959
* @since 3.0

src/main/java/org/apache/commons/collections4/CollectionUtils.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,11 +1838,11 @@ public static <O, R extends Collection<? super O>> R selectRejected(final Iterab
18381838
* This method can handles objects as follows
18391839
* </p>
18401840
* <ul>
1841-
* <li>Collection - the collection size
1842-
* <li>Map - the map size
1843-
* <li>Array - the array size
1844-
* <li>Iterator - the number of elements remaining in the iterator
1845-
* <li>Enumeration - the number of elements remaining in the enumeration
1841+
* <li>Collection - the collection size</li>
1842+
* <li>Map - the map size</li>
1843+
* <li>Array - the array size</li>
1844+
* <li>Iterator - the number of elements remaining in the iterator</li>
1845+
* <li>Enumeration - the number of elements remaining in the enumeration</li>
18461846
* </ul>
18471847
*
18481848
* @param object the object to get the size of, may be null
@@ -1887,11 +1887,11 @@ public static int size(final Object object) {
18871887
* This method can handles objects as follows
18881888
* </p>
18891889
* <ul>
1890-
* <li>Collection - via collection isEmpty
1891-
* <li>Map - via map isEmpty
1892-
* <li>Array - using array size
1893-
* <li>Iterator - via hasNext
1894-
* <li>Enumeration - via hasMoreElements
1890+
* <li>Collection - via collection isEmpty</li>
1891+
* <li>Map - via map isEmpty</li>
1892+
* <li>Array - using array size</li>
1893+
* <li>Iterator - via hasNext</li>
1894+
* <li>Enumeration - via hasMoreElements</li>
18951895
* </ul>
18961896
* <p>
18971897
* Note: This method is named to avoid clashing with

src/main/java/org/apache/commons/collections4/FactoryUtils.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
* {@code FactoryUtils} provides reference implementations and utilities
2626
* for the Factory functor interface. The supplied factories are:
2727
* <ul>
28-
* <li>Prototype - clones a specified object
29-
* <li>Instantiate - creates objects using reflection
30-
* <li>Constant - always returns the same object
31-
* <li>Null - always returns null
32-
* <li>Exception - always throws an exception
28+
* <li>Prototype - clones a specified object</li>
29+
* <li>Instantiate - creates objects using reflection</li>
30+
* <li>Constant - always returns the same object</li>
31+
* <li>Null - always returns null</li>
32+
* <li>Exception - always throws an exception</li>
3333
* </ul>
3434
* <p>
3535
* Since v4.1 only factories which are considered to be safe are
3636
* Serializable. Factories considered to be unsafe for serialization are:
3737
* </p>
3838
* <ul>
39-
* <li>Prototype
40-
* <li>Instantiate
39+
* <li>Prototype</li>
40+
* <li>Instantiate</li>
4141
* </ul>
4242
*
4343
* @since 3.0

src/main/java/org/apache/commons/collections4/FluentIterable.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@
3535
* </p>
3636
* <ul>
3737
* <li>fluent methods which return a new {@code FluentIterable} instance,
38-
* providing a view of the original iterable (for example filter(Predicate));
38+
* providing a view of the original iterable (for example filter(Predicate));</li>
3939
* <li>conversion methods which copy the FluentIterable's contents into a
40-
* new collection or array (for example toList());
40+
* new collection or array (for example toList());</li>
4141
* <li>utility methods which answer questions about the FluentIterable's
42-
* contents (for example size(), anyMatch(Predicate)).
43-
* <li>
42+
* contents (for example size(), anyMatch(Predicate)).</li>
4443
* </ul>
4544
* <p>
4645
* The following example outputs the first 3 even numbers in the range [1, 10]
@@ -218,8 +217,8 @@ public Enumeration<E> asEnumeration() {
218217
* Example: natural ordering
219218
* </p>
220219
* <ul>
221-
* <li>this contains elements [1, 3, 5, 7]
222-
* <li>other contains elements [2, 4, 6, 8]
220+
* <li>this contains elements [1, 3, 5, 7]</li>
221+
* <li>other contains elements [2, 4, 6, 8]</li>
223222
* </ul>
224223
* <p>
225224
* The returned iterable will traverse the elements in the following
@@ -243,8 +242,8 @@ public FluentIterable<E> collate(final Iterable<? extends E> other) {
243242
* Example: descending order
244243
* </p>
245244
* <ul>
246-
* <li>this contains elements [7, 5, 3, 1]
247-
* <li>other contains elements [8, 6, 4, 2]
245+
* <li>this contains elements [7, 5, 3, 1]</li>
246+
* <li>other contains elements [8, 6, 4, 2]</li>
248247
* </ul>
249248
* <p>
250249
* The returned iterable will traverse the elements in the following

src/main/java/org/apache/commons/collections4/IterableUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@
3939
* </p>
4040
* <ul>
4141
* <li>All decorator methods are <em>not</em> null-safe for the provided Iterable argument; for example, they will throw a {@link NullPointerException} if a
42-
* null Iterable is passed as argument.
42+
* null Iterable is passed as argument.</li>
4343
* <li>All other utility methods are null-safe for the provided Iterable argument; for example, they will treat a null Iterable the same way as an empty one.
4444
* For other arguments which are null, a {@link Predicate} will result in a {@link NullPointerException}. Exception: passing a null {@link Comparator} is
45-
* equivalent to a Comparator with natural ordering.
45+
* equivalent to a Comparator with natural ordering.</li>
4646
* </ul>
4747
*
4848
* @since 4.1

src/main/java/org/apache/commons/collections4/IteratorUtils.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -866,17 +866,17 @@ static <E> E get(final Iterator<E> iterator, final int index, final IntFunction<
866866
* This method can handle objects as follows
867867
* </p>
868868
* <ul>
869-
* <li>null - empty iterator
870-
* <li>Iterator - returned directly
871-
* <li>Enumeration - wrapped
872-
* <li>Collection - iterator from collection returned
873-
* <li>Map - values iterator returned
874-
* <li>Dictionary - values (elements) enumeration returned as iterator
875-
* <li>array - iterator over array returned
876-
* <li>object with iterator() public method accessed by reflection
877-
* <li>object - singleton iterator
878-
* <li>NodeList - iterator over the list
879-
* <li>Node - iterator over the child nodes
869+
* <li>null - empty iterator</li>
870+
* <li>Iterator - returned directly</li>
871+
* <li>Enumeration - wrapped</li>
872+
* <li>Collection - iterator from collection returned</li>
873+
* <li>Map - values iterator returned</li>
874+
* <li>Dictionary - values (elements) enumeration returned as iterator</li>
875+
* <li>array - iterator over array returned</li>
876+
* <li>object with iterator() public method accessed by reflection</li>
877+
* <li>object - singleton iterator</li>
878+
* <li>NodeList - iterator over the list</li>
879+
* <li>Node - iterator over the child nodes</li>
880880
* </ul>
881881
*
882882
* @param obj the object to convert to an iterator

src/main/java/org/apache/commons/collections4/MapUtils.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,19 @@
6060
* </p>
6161
*
6262
* <ul>
63-
* <li>{@link #fixedSizeMap(Map)}
64-
* <li>{@link #fixedSizeSortedMap(SortedMap)}
65-
* <li>{@link #lazyMap(Map,Factory)}
66-
* <li>{@link #lazyMap(Map,Transformer)}
67-
* <li>{@link #lazySortedMap(SortedMap,Factory)}
68-
* <li>{@link #lazySortedMap(SortedMap,Transformer)}
69-
* <li>{@link #predicatedMap(Map,Predicate,Predicate)}
70-
* <li>{@link #predicatedSortedMap(SortedMap,Predicate,Predicate)}
71-
* <li>{@link #transformedMap(Map, Transformer, Transformer)}
72-
* <li>{@link #transformedSortedMap(SortedMap, Transformer, Transformer)}
73-
* <li>{@link #multiValueMap(Map)}
74-
* <li>{@link #multiValueMap(Map, Class)}
75-
* <li>{@link #multiValueMap(Map, Factory)}
63+
* <li>{@link #fixedSizeMap(Map)}</li>
64+
* <li>{@link #fixedSizeSortedMap(SortedMap)}</li>
65+
* <li>{@link #lazyMap(Map,Factory)}</li>
66+
* <li>{@link #lazyMap(Map,Transformer)}</li>
67+
* <li>{@link #lazySortedMap(SortedMap,Factory)}</li>
68+
* <li>{@link #lazySortedMap(SortedMap,Transformer)}</li>
69+
* <li>{@link #predicatedMap(Map,Predicate,Predicate)}</li>
70+
* <li>{@link #predicatedSortedMap(SortedMap,Predicate,Predicate)}</li>
71+
* <li>{@link #transformedMap(Map, Transformer, Transformer)}</li>
72+
* <li>{@link #transformedSortedMap(SortedMap, Transformer, Transformer)}</li>
73+
* <li>{@link #multiValueMap(Map)}</li>
74+
* <li>{@link #multiValueMap(Map, Class)}</li>
75+
* <li>{@link #multiValueMap(Map, Factory)}</li>
7676
* </ul>
7777
*
7878
* @since 1.0

src/main/java/org/apache/commons/collections4/PredicateUtils.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,24 @@
4545
* {@code PredicateUtils} provides reference implementations and utilities
4646
* for the Predicate functor interface. The supplied predicates are:
4747
* <ul>
48-
* <li>Invoker - returns the result of a method call on the input object
49-
* <li>InstanceOf - true if the object is an instanceof a class
50-
* <li>Equal - true if the object equals() a specified object
51-
* <li>Identity - true if the object == a specified object
52-
* <li>Null - true if the object is null
53-
* <li>NotNull - true if the object is not null
54-
* <li>Unique - true if the object has not already been evaluated
55-
* <li>And/All - true if all of the predicates are true
56-
* <li>Or/Any - true if any of the predicates is true
57-
* <li>Either/One - true if only one of the predicate is true
58-
* <li>Neither/None - true if none of the predicates are true
59-
* <li>Not - true if the predicate is false, and vice versa
60-
* <li>Transformer - wraps a Transformer as a Predicate
61-
* <li>True - always return true
62-
* <li>False - always return false
63-
* <li>Exception - always throws an exception
64-
* <li>NullIsException/NullIsFalse/NullIsTrue - check for null input
65-
* <li>Transformed - transforms the input before calling the predicate
48+
* <li>Invoker - returns the result of a method call on the input object</li>
49+
* <li>InstanceOf - true if the object is an instanceof a class</li>
50+
* <li>Equal - true if the object equals() a specified object</li>
51+
* <li>Identity - true if the object == a specified object</li>
52+
* <li>Null - true if the object is null</li>
53+
* <li>NotNull - true if the object is not null</li>
54+
* <li>Unique - true if the object has not already been evaluated</li>
55+
* <li>And/All - true if all of the predicates are true</li>
56+
* <li>Or/Any - true if any of the predicates is true</li>
57+
* <li>Either/One - true if only one of the predicate is true</li>
58+
* <li>Neither/None - true if none of the predicates are true</li>
59+
* <li>Not - true if the predicate is false, and vice versa</li>
60+
* <li>Transformer - wraps a Transformer as a Predicate</li>
61+
* <li>True - always return true</li>
62+
* <li>False - always return false</li>
63+
* <li>Exception - always throws an exception</li>
64+
* <li>NullIsException/NullIsFalse/NullIsTrue - check for null input</li>
65+
* <li>Transformed - transforms the input before calling the predicate</li>
6666
* </ul>
6767
* <p>
6868
* All the supplied predicates are Serializable.

src/main/java/org/apache/commons/collections4/TransformerUtils.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,31 +40,31 @@
4040
* {@code TransformerUtils} provides reference implementations and
4141
* utilities for the Transformer functor interface. The supplied transformers are:
4242
* <ul>
43-
* <li>Invoker - returns the result of a method call on the input object
44-
* <li>Clone - returns a clone of the input object
45-
* <li>Constant - always returns the same object
46-
* <li>Closure - performs a Closure and returns the input object
47-
* <li>Predicate - returns the result of the predicate as a Boolean
48-
* <li>Factory - returns a new object from a factory
49-
* <li>Chained - chains two or more transformers together
50-
* <li>If - calls one transformer or another based on a predicate
51-
* <li>Switch - calls one transformer based on one or more predicates
52-
* <li>SwitchMap - calls one transformer looked up from a Map
53-
* <li>Instantiate - the Class input object is instantiated
54-
* <li>Map - returns an object from a supplied Map
55-
* <li>Null - always returns null
56-
* <li>NOP - returns the input object, which should be immutable
57-
* <li>Exception - always throws an exception
58-
* <li>StringValue - returns a {@link String} representation of the input object
43+
* <li>Invoker - returns the result of a method call on the input object</li>
44+
* <li>Clone - returns a clone of the input object</li>
45+
* <li>Constant - always returns the same object</li>
46+
* <li>Closure - performs a Closure and returns the input object</li>
47+
* <li>Predicate - returns the result of the predicate as a Boolean</li>
48+
* <li>Factory - returns a new object from a factory</li>
49+
* <li>Chained - chains two or more transformers together</li>
50+
* <li>If - calls one transformer or another based on a predicate</li>
51+
* <li>Switch - calls one transformer based on one or more predicates</li>
52+
* <li>SwitchMap - calls one transformer looked up from a Map</li>
53+
* <li>Instantiate - the Class input object is instantiated</li>
54+
* <li>Map - returns an object from a supplied Map</li>
55+
* <li>Null - always returns null</li>
56+
* <li>NOP - returns the input object, which should be immutable</li>
57+
* <li>Exception - always throws an exception</li>
58+
* <li>StringValue - returns a {@link String} representation of the input object</li>
5959
* </ul>
6060
* <p>
6161
* Since v4.1 only transformers which are considered to be safe are
6262
* Serializable. Transformers considered to be unsafe for serialization are:
6363
* </p>
6464
* <ul>
65-
* <li>Invoker
66-
* <li>Clone
67-
* <li>Instantiate
65+
* <li>Invoker</li>
66+
* <li>Clone</li>
67+
* <li>Instantiate</li>
6868
* </ul>
6969
*
7070
* @since 3.0

0 commit comments

Comments
 (0)