Skip to content

Commit

Permalink
No need for this change now.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregw committed Dec 19, 2022
1 parent 8a1dc8e commit 411e9ca
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,9 @@ public void exclude(T... element)
@Override
public boolean test(P t)
{
// return true IFF the passed object is not in the excluded set AND
// either the included set is empty OR the object is in the included set
return (_excludes.isEmpty() || !_excludePredicate.test(t)) &&
(_includes.isEmpty() || _includePredicate.test(t));
if (!_includes.isEmpty() && !_includePredicate.test(t))
return false;
return !_excludePredicate.test(t);
}

/**
Expand Down

0 comments on commit 411e9ca

Please sign in to comment.