[ 
https://issues.apache.org/jira/browse/LANG-1417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16596479#comment-16596479
 ] 

Benedikt Ritter edited comment on LANG-1417 at 8/29/18 3:33 PM:
----------------------------------------------------------------

As Pascal pointed out, it might be better to just add @FunctionalInterface to 
the existing interface instead of migrating everything 
java.util.function.Predicate, seeĀ 
https://lists.apache.org/thread.html/ac55c0da550ed02dfa0047f8ac42038f4a180ee4a7b6c85b5b9559d0@%3Cdev.commons.apache.org%3E


was (Author: britter):
As Pascal pointed out, it might be better to just add @FunctionalInterface to 
the existing interface instead of migrating everything 
java.util.function.Predicate

> Deprecate ThreadPredicate and ThreadGroupPredicate in favor of 
> java.util.function.Predicate
> -------------------------------------------------------------------------------------------
>
>                 Key: LANG-1417
>                 URL: https://issues.apache.org/jira/browse/LANG-1417
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>            Reporter: Benedikt Ritter
>            Priority: Major
>             Fix For: 3.9
>
>
> Since we upgraded the Java language requirement to Java 8, we can deprecateĀ 
> our custom ThreadPredicate and ThreadGroupPredicate implementations.
> It looks like our initial plan to let ThreadPredicate and 
> ThreadGroupPredicate extend java.util.function.Predicate is not possible. 
> This is because auf AlwaysTruePredicate and NamePredicate extending both 
> interfaces. This leads to the situation that these classes would inherit from 
> both Predicate<Thread> and Predicate<ThreadGroup>, which is not possible.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to