Merge branch 'LANG-1417'

This commit is contained in:
Benedikt Ritter 2018-09-04 11:37:00 +02:00
commit 3e44d26342
No known key found for this signature in database
GPG Key ID: 9DAADC1C9FCC82D0
2 changed files with 7 additions and 4 deletions

View File

@ -46,6 +46,7 @@ The <action> type attribute can be add,update,fix,remove.
<body>
<release version="3.9" date="????-??-??" description="??">
<action issue="LANG-1417" type="update" dev="britter">Add @FunctionalInterface to ThreadPredicate and ThreadGroupPredicate</action>
<action issue="LANG-1415" type="update" dev="britter">Update Java Language requirement to 1.8</action>
<action issue="LANG-1411" type="add" dev="britter" due-to="Alexander Tsvetkov">Add isEmpty method to ObjectUtils</action>
</release>

View File

@ -239,8 +239,9 @@ public class ThreadUtils {
/**
* A predicate for selecting threads.
*/
//if java minimal version for lang becomes 1.8 extend this interface from java.util.function.Predicate
public interface ThreadPredicate /*extends java.util.function.Predicate<Thread>*/{
// When breaking BC, replace this with Predicate<Thread>
@FunctionalInterface
public interface ThreadPredicate {
/**
* Evaluates this predicate on the given thread.
@ -253,8 +254,9 @@ public class ThreadUtils {
/**
* A predicate for selecting threadgroups.
*/
//if java minimal version for lang becomes 1.8 extend this interface from java.util.function.Predicate
public interface ThreadGroupPredicate /*extends java.util.function.Predicate<ThreadGroup>*/{
// When breaking BC, replace this with Predicate<ThreadGroup>
@FunctionalInterface
public interface ThreadGroupPredicate {
/**
* Evaluates this predicate on the given threadgroup.