diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index d177eab656..649e94beb4 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -32,6 +32,7 @@
Deprecate StringKeyAnalyzer.StringKeyAnalyzer() in favor of StringKeyAnalyzer.INSTANCE.
[Functional] FunctorUtils.validate(Closure...) is now FunctorUtils.validate(Consumer...).
[Functional] FunctorUtils.validate(Predicate...) is now FunctorUtils.validate(java.util.function.Predicate...).
+ [Functional] FunctorUtils.validate(Transformer...) is now FunctorUtils.validate(Function...).
Update bloom filter documentation #508.
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 2a01705eac..c4b8fe3c66 100644
--- a/src/main/java/org/apache/commons/collections4/functors/FunctorUtils.java
+++ b/src/main/java/org/apache/commons/collections4/functors/FunctorUtils.java
@@ -19,6 +19,7 @@
import java.util.Collection;
import java.util.Objects;
import java.util.function.Consumer;
+import java.util.function.Function;
import org.apache.commons.collections4.Closure;
import org.apache.commons.collections4.Predicate;
@@ -176,13 +177,13 @@ static void validate(final java.util.function.Predicate>... predicates) {
/**
* Validate method
*
- * @param transformers the transformers to validate
+ * @param functions the transformers to validate
*/
- static void validate(final Transformer, ?>... transformers) {
- Objects.requireNonNull(transformers, "transformers");
- for (int i = 0; i < transformers.length; i++) {
- if (transformers[i] == null) {
- throw new NullPointerException("transformers[" + i + "]");
+ static void validate(final Function, ?>... functions) {
+ Objects.requireNonNull(functions, "functions");
+ for (int i = 0; i < functions.length; i++) {
+ if (functions[i] == null) {
+ throw new NullPointerException("functions[" + i + "]");
}
}
}