commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LANG-1417) Deprecate ThreadPredicate and ThreadGroupPredicate in favor of java.util.function.Predicate
Date Tue, 28 Aug 2018 08:21:00 GMT
Benedikt Ritter created LANG-1417:
-------------------------------------

             Summary: 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
             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)

Mime
View raw message