This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git

commit 6cd7bd5ed962ad19fc6af5260e656f35fa2b3d16
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Aug 21 11:07:33 2022 -0400

    ThreadGroupPredicate extends Predicate<ThreadGroup>
---
 src/changes/changes.xml                                 | 1 +
 src/main/java/org/apache/commons/lang3/ThreadUtils.java | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index ae8357c84..a774319cf 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -168,6 +168,7 @@ 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>
diff --git a/src/main/java/org/apache/commons/lang3/ThreadUtils.java 
b/src/main/java/org/apache/commons/lang3/ThreadUtils.java
index 369a6c9a4..5d8e790dc 100644
--- a/src/main/java/org/apache/commons/lang3/ThreadUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ThreadUtils.java
@@ -21,6 +21,7 @@ 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;
 
@@ -89,15 +90,16 @@ public class ThreadUtils {
     /**
      * A predicate for selecting thread groups.
      */
-    // When breaking BC, replace this with Predicate<ThreadGroup>
+    // TODO When breaking BC, replace this with Predicate<ThreadGroup>
     @FunctionalInterface
-    public interface ThreadGroupPredicate {
+    public interface ThreadGroupPredicate extends Predicate<ThreadGroup> {
 
         /**
          * 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);
     }
 

Reply via email to