diff --git a/src/main/java/org/apache/commons/lang3/Functions.java b/src/main/java/org/apache/commons/lang3/Functions.java index 903a5277c..ec4db67ae 100644 --- a/src/main/java/org/apache/commons/lang3/Functions.java +++ b/src/main/java/org/apache/commons/lang3/Functions.java @@ -28,7 +28,7 @@ import java.lang.reflect.UndeclaredThrowableException; * not to throw Exceptions, at least not checked Exceptions, aka instances of * {@link Exception}. This enforces the use of constructs like *
- *   Consumer consumer = (m) -> {
+ *   Consumer<java.lang.reflect.Method> consumer = (m) -> {
  *       try {
  *           m.invoke(o, args);
  *       } catch (Throwable t) {
@@ -36,11 +36,11 @@ import java.lang.reflect.UndeclaredThrowableException;
  *       }
  *   };
  * 
- * By replacing a {@link Consumer Consumer} with a - * {@link FailableConsumer FailableConsumer - * Functions.accept((m) -> m.invoke(o,args)); + * Functions.accept((m) -> m.invoke(o,args)); * * Obviously, the second version is much more concise and the spirit of * Lambda expressions is met better than the second version. @@ -265,7 +265,7 @@ public class Functions { * {@link Throwable} is rethrown. Example use: *
      *   final FileInputStream fis = new FileInputStream("my.file");
-     *   Functions.tryWithResources(useInputStream(fis), null, () -> fis.close());
+     *   Functions.tryWithResources(useInputStream(fis), null, () -> fis.close());
      * 
* @param pAction The action to execute. This object will always * be invoked. @@ -330,7 +330,7 @@ public class Functions { * {@link Throwable} is rethrown. Example use: *
      *   final FileInputStream fis = new FileInputStream("my.file");
-     *   Functions.tryWithResources(useInputStream(fis), () -> fis.close());
+     *   Functions.tryWithResources(useInputStream(fis), () -> fis.close());
      * 
* @param pAction The action to execute. This object will always * be invoked.