Revert "ThreadGroupPredicate extends Predicate<ThreadGroup>"

This reverts commit 6cd7bd5ed9.
This commit is contained in:
Gary Gregory 2022-08-21 11:15:50 -04:00
parent 6cd7bd5ed9
commit 4dd0a6b4a6
2 changed files with 2 additions and 5 deletions

View File

@ -168,7 +168,6 @@ The <action> type attribute can be add,update,fix,remove.
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Streams.of(Iterable&lt;E&gt;).</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Streams.of(Iterator&lt;E&gt;).</action>
<action issue="LANG-1689" type="add" dev="ggregory" due-to="Joseph Hendrix, Gary Gregory">Simple support for Optional in ObjectUtils#isEmpty() #933.</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">ThreadGroupPredicate extends Predicate&lt;ThreadGroup&gt;.</action>
<!-- UPDATE -->
<action type="update" dev="ggregory" due-to="Dependabot, XenoAmess, Gary Gregory">Bump actions/cache from 2.1.4 to 3.0.7 #742, #752, #764, #833, #867.</action>
<action type="update" dev="ggregory" due-to="Dependabot">Bump actions/checkout from 2 to 3 #819, #825, #859.</action>

View File

@ -21,7 +21,6 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.function.Predicate;
import org.apache.commons.lang3.time.DurationUtils;
@ -90,16 +89,15 @@ public class ThreadUtils {
/**
* A predicate for selecting thread groups.
*/
// TODO When breaking BC, replace this with Predicate<ThreadGroup>
// When breaking BC, replace this with Predicate<ThreadGroup>
@FunctionalInterface
public interface ThreadGroupPredicate extends Predicate<ThreadGroup> {
public interface ThreadGroupPredicate {
/**
* Evaluates this predicate on the given thread group.
* @param threadGroup the thread group
* @return {@code true} if the threadGroup matches the predicate, otherwise {@code false}
*/
@Override
boolean test(ThreadGroup threadGroup);
}