diff --git a/src/java/org/apache/commons/collections/functors/FunctorUtils.java b/src/java/org/apache/commons/collections/functors/FunctorUtils.java index 35855587f..436f9b50f 100644 --- a/src/java/org/apache/commons/collections/functors/FunctorUtils.java +++ b/src/java/org/apache/commons/collections/functors/FunctorUtils.java @@ -95,12 +95,12 @@ class FunctorUtils { * @param predicates the predicates to validate * @return predicate array */ - @SuppressWarnings("unchecked") static Predicate[] validate(Collection> predicates) { if (predicates == null) { throw new IllegalArgumentException("The predicate collection must not be null"); } // convert to array like this to guarantee iterator() ordering + @SuppressWarnings("unchecked") // OK Predicate[] preds = new Predicate[predicates.size()]; int i = 0; for (Predicate predicate : predicates) {