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-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 22dc786f2 Make new class final
22dc786f2 is described below

commit 22dc786f2ea789fc084672ff10da6a2069f4347e
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Aug 5 11:22:51 2023 -0400

    Make new class final
    
    - Make method public
    - Javadoc
---
 .../org/apache/commons/lang3/function/Functions.java | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/function/Functions.java 
b/src/main/java/org/apache/commons/lang3/function/Functions.java
index 80f3904ca..d33cc34ba 100644
--- a/src/main/java/org/apache/commons/lang3/function/Functions.java
+++ b/src/main/java/org/apache/commons/lang3/function/Functions.java
@@ -19,20 +19,26 @@ package org.apache.commons.lang3.function;
 
 import java.util.function.Function;
 
-public class Functions {
+/**
+ * Factory for {@link Function}.
+ *
+ * @since 3.14.0
+ */
+public final class Functions {
 
     /**
      * Starts a fluent chain like {@code 
function(foo::bar).andThen(...).andThen(...).apply(...);}
      *
-     * @param <T> Input type.
-     * @param <R> Return type.
-     * @param <E> The kind of thrown exception or error.
-     * @param function   the argument to return.
+     * @param <T>      Input type.
+     * @param <R>      Return type.
+     * @param function the argument to return.
      * @return the argument
-     * @since 3.14.0
      */
-    static <T, R> Function<T, R> function(final Function<T, R> function) {
+    public static <T, R> Function<T, R> function(final Function<T, R> 
function) {
         return function;
     }
 
+    private Functions() {
+        // no instances needed.
+    }
 }

Reply via email to