Skip to content

Commit

Permalink
[COLLECTIONS-815] Update ClosureUtils Javadoc to match runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 20, 2024
1 parent 6d007a5 commit 589e18e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix generics in IteratorChain.IteratorChain(Collection).</action>
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix generics in org.apache.commons.collections4.IteratorUtils.chainedIterator(Collection).</action>
<action type="fix" dev="ggregory" due-to="Benjamin Confino, Gary Gregory" issue="COLLECTIONS-856">Javadoc: Document interaction between peek and filter iterator #515.</action>
<action type="fix" dev="ggregory" due-to="Elia Bertolina, Gary Gregory" issue="COLLECTIONS-815">Javadoc: Update ClosureUtils Javadoc to match runtime.</action>
<!-- ADD -->
<action type="add" dev="ggregory" due-to="Gary Gregory">LayerManager.Builder implements Supplier.</action>
<action type="add" dev="ggregory" due-to="Gary Gregory, hemanth0525">Add CollectionUtils.duplicateList(Collection).</action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public static <E> Closure<E> chainedClosure(final Closure<? super E>... closures
* @return the {@code chained} closure
* @throws NullPointerException if the closures collection is null
* @throws NullPointerException if any closure in the collection is null
* @throws IllegalArgumentException if the closures collection is empty
*/
public static <E> Closure<E> chainedClosure(final Collection<? extends Closure<? super E>> closures) {
return ChainedClosure.chainedClosure(closures);
Expand All @@ -130,10 +129,9 @@ public static <E> Closure<E> doWhileClosure(final Closure<? super E> closure,
* Gets a Closure that always throws an exception.
* This could be useful during testing as a placeholder.
*
* @see org.apache.commons.collections4.functors.ExceptionClosure
*
* @param <E> the type that the closure acts on
* @return the closure
* @see ExceptionClosure
*/
public static <E> Closure<E> exceptionClosure() {
return ExceptionClosure.<E>exceptionClosure();
Expand Down Expand Up @@ -262,7 +260,6 @@ public static <E> Closure<E> nopClosure() {
* @return the {@code switch} closure
* @throws NullPointerException if the map is null
* @throws NullPointerException if any closure in the map is null
* @throws IllegalArgumentException if the map is empty
* @throws ClassCastException if the map elements are of the wrong type
*/
public static <E> Closure<E> switchClosure(final Map<Predicate<E>, Closure<E>> predicatesAndClosures) {
Expand Down Expand Up @@ -337,7 +334,6 @@ public static <E> Closure<E> switchClosure(final Predicate<? super E>[] predicat
* @return the closure
* @throws NullPointerException if the map is null
* @throws NullPointerException if any closure in the map is null
* @throws IllegalArgumentException if the map is empty
*/
@SuppressWarnings("unchecked")
public static <E> Closure<E> switchMapClosure(final Map<? extends E, Closure<E>> objectsAndClosures) {
Expand Down

0 comments on commit 589e18e

Please sign in to comment.