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-collections.git
commit bc8ad80ec6dd9d76b4c32d8e07cf2b5d59390be3 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Jul 11 11:18:12 2024 -0400 Migrate toward java.util.function - Package-private changes only - Maintains binary and source compatibility --- .../java/org/apache/commons/collections4/functors/FunctorUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/functors/FunctorUtils.java b/src/main/java/org/apache/commons/collections4/functors/FunctorUtils.java index 8a9f57700..7f23d5664 100644 --- a/src/main/java/org/apache/commons/collections4/functors/FunctorUtils.java +++ b/src/main/java/org/apache/commons/collections4/functors/FunctorUtils.java @@ -127,14 +127,14 @@ final class FunctorUtils { * @param predicates the predicates to validate * @return predicate array */ - static <T> Predicate<? super T>[] validate(final Collection<? extends Predicate<? super T>> predicates) { + static <T> Predicate<? super T>[] validate(final Collection<? extends java.util.function.Predicate<? super T>> predicates) { Objects.requireNonNull(predicates, "predicates"); // convert to array like this to guarantee iterator() ordering @SuppressWarnings("unchecked") // OK final Predicate<? super T>[] preds = new Predicate[predicates.size()]; int i = 0; - for (final Predicate<? super T> predicate : predicates) { - preds[i] = predicate; + for (final java.util.function.Predicate<? super T> predicate : predicates) { + preds[i] = (Predicate<? super T>) predicate; if (preds[i] == null) { throw new NullPointerException("predicates[" + i + "]"); }