This is an automated email from the ASF dual-hosted git repository. pascalschumacher pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit fc6a392b7c1a23227a994972985dadef10ab83a9 Author: Allon Mureinik <murei...@gmail.com> AuthorDate: Fri Feb 8 20:05:43 2019 +0200 Fix javadoc errors in Functions.java --- src/main/java/org/apache/commons/lang3/Functions.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/Functions.java b/src/main/java/org/apache/commons/lang3/Functions.java index 903a527..ec4db67 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 * <pre> - * Consumer<java.lang.reflect.Method> 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; * } * }; * </pre> - * By replacing a {@link Consumer Consumer<O>} with a - * {@link FailableConsumer FailableConsumer<O,? extends Throwable}, this can be + * By replacing a {@link java.util.function.Consumer Consumer<O>} with a + * {@link FailableConsumer FailableConsumer<O,? extends Throwable>}, this can be * written like follows: * <pre> - * Functions.accept((m) -> m.invoke(o,args)); + * Functions.accept((m) -> m.invoke(o,args)); * </pre> * 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: * <pre> * final FileInputStream fis = new FileInputStream("my.file"); - * Functions.tryWithResources(useInputStream(fis), null, () -> fis.close()); + * Functions.tryWithResources(useInputStream(fis), null, () -> fis.close()); * </pre> * @param pAction The action to execute. This object <em>will</em> always * be invoked. @@ -330,7 +330,7 @@ public class Functions { * {@link Throwable} is rethrown. Example use: * <pre> * final FileInputStream fis = new FileInputStream("my.file"); - * Functions.tryWithResources(useInputStream(fis), () -> fis.close()); + * Functions.tryWithResources(useInputStream(fis), () -> fis.close()); * </pre> * @param pAction The action to execute. This object <em>will</em> always * be invoked.