Skip to content

Commit 583231a

Browse files
committed
Remove deprecation annotation of
org.apache.commons.collections4.Closure; this will be deprecated in 5.0 in favor of java.util.function.Consumer
1 parent c6305c4 commit 583231a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<action type="fix" dev="ggregory" due-to="Eric Hubert, Gary Gregory">Remove deprecation annotation of org.apache.commons.collections4.Factory; this will be deprecated in 5.0 in favor of java.util.function.Supplier.</action>
2929
<action type="fix" dev="ggregory" due-to="Eric Hubert, Gary Gregory">Remove deprecation annotation of org.apache.commons.collections4.Predicate; this will be deprecated in 5.0 in favor of java.util.function.Predicate.</action>
3030
<action type="fix" dev="ggregory" due-to="Eric Hubert, Gary Gregory">Remove deprecation annotation of org.apache.commons.collections4.Transformer; this will be deprecated in 5.0 in favor of java.util.function.Function.</action>
31+
<action type="fix" dev="ggregory" due-to="Eric Hubert, Gary Gregory">Remove deprecation annotation of org.apache.commons.collections4.Closure; this will be deprecated in 5.0 in favor of java.util.function.Consumer.</action>
3132
<!-- ADD -->
3233
<!-- UPDATE -->
3334
<action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump org.apache.commons:commons-parent from 81 to 83 #612.</action>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package org.apache.commons.collections4;
1818

1919
import java.util.function.Consumer;
20+
import java.util.function.Supplier;
2021

2122
/**
2223
* Defines a functor interface implemented by classes that do something.
@@ -31,9 +32,9 @@
3132
*
3233
* @param <T> the type of the input to the operation.
3334
* @since 1.0
34-
* @deprecated Use {@link Consumer}.
35+
* This will be deprecated in 5.0 in favor of {@link Supplier}.
3536
*/
36-
@Deprecated
37+
//@Deprecated
3738
public interface Closure<T> extends Consumer<T> {
3839

3940
@Override

0 commit comments

Comments
 (0)