Skip to content

Commit 2922d2d

Browse files
committed
Deprecate Filter#adaptFilter
1 parent ded1a26 commit 2922d2d

File tree

1 file changed

+3
-0
lines changed
  • junit-platform-engine/src/main/java/org/junit/platform/engine

1 file changed

+3
-0
lines changed

junit-platform-engine/src/main/java/org/junit/platform/engine/Filter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
package org.junit.platform.engine;
1212

1313
import static java.util.Arrays.asList;
14+
import static org.apiguardian.api.API.Status.DEPRECATED;
1415
import static org.apiguardian.api.API.Status.STABLE;
1516
import static org.junit.platform.commons.util.CollectionUtils.getOnlyElement;
1617
import static org.junit.platform.engine.CompositeFilter.alwaysIncluded;
@@ -94,6 +95,8 @@ static <T> Filter<T> composeFilters(Collection<? extends Filter<T>> filters) {
9495
* @param adaptee the filter to be adapted
9596
* @param converter the converter function to apply
9697
*/
98+
@API(status = DEPRECATED, since = "6.0")
99+
@Deprecated(since = "6.0", forRemoval = true)
97100
static <T, V> Filter<T> adaptFilter(Filter<V> adaptee, Function<T, V> converter) {
98101
return input -> adaptee.apply(converter.apply(input));
99102
}

0 commit comments

Comments
 (0)