Skip to content

Commit a4b0e7c

Browse files
committed
Remove deprecation annotation of
org.apache.commons.collections4.Factory; this will be deprecated in 5.0 in favor of java.util.function.Supplier - Remove deprecation annotation of org.apache.commons.collections4.Predicate; this will be deprecated in 5.0 in favor of java.util.function.Predicate - Remove deprecation annotation of org.apache.commons.collections4.Transformer; this will be deprecated in 5.0 in favor of java.util.function.Function
1 parent 8199eb3 commit a4b0e7c

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
<release version="4.5.1" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required.">
2626
<!-- FIX -->
2727
<action type="fix" dev="ggregory" due-to="Gary Gregory">org.apache.commons.collections4.map.AbstractReferenceMap.ReferenceEntry.toReference(ReferenceStrength, T, int) now throws IllegalArgumentException instead of Error</action>
28+
<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>
29+
<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>
30+
<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>
2831
<!-- ADD -->
2932
<!-- UPDATE -->
3033
<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/Factory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
*
3333
* @param <T> the type of results supplied by this supplier.
3434
* @since 2.1
35-
* @deprecated Use {@link Supplier}.
35+
* This will be deprecated in 5.0 in favor of {@link Supplier}.
3636
*/
37-
@Deprecated
37+
//@Deprecated
3838
public interface Factory<T> extends Supplier<T> {
3939

4040
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
*
3333
* @param <T> the type of the input to the predicate.
3434
* @since 1.0
35-
* @deprecated Use {@link java.util.function.Predicate}.
35+
* This will be deprecated in 5.0 in favor of {@link java.util.function.Predicate}.
3636
*/
37-
@Deprecated
37+
//@Deprecated
3838
public interface Predicate<T> extends java.util.function.Predicate<T> {
3939

4040
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
* @param <T> the type of the input to the function.
3737
* @param <R> the type of the result of the function.
3838
* @since 1.0
39-
* @deprecated Use {@link Function}.
39+
* This will be deprecated in 5.0 in favor of {@link Function}.
4040
*/
41-
@Deprecated
41+
//@Deprecated
4242
@FunctionalInterface
4343
public interface Transformer<T, R> extends Function<T, R> {
4444

0 commit comments

Comments
 (0)