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 b69c475 [LANG-1568] Javadoc. b69c475 is described below commit b69c4759ed286546ba5437d9fcb6d24a1e2d3f8d Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Jun 25 13:57:28 2020 -0400 [LANG-1568] Javadoc. --- .../apache/commons/lang3/function/Failable.java | 35 ++++++++-------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/function/Failable.java b/src/main/java/org/apache/commons/lang3/function/Failable.java index d2a12a0..d4bf30d 100644 --- a/src/main/java/org/apache/commons/lang3/function/Failable.java +++ b/src/main/java/org/apache/commons/lang3/function/Failable.java @@ -41,16 +41,13 @@ import org.apache.commons.lang3.stream.Streams.FailableStream; * constructs like: * * <pre> - * { - * @code - * Consumer<java.lang.reflect.Method> consumer = (m) -> { - * try { - * m.invoke(o, args); - * } catch (Throwable t) { - * throw Failable.rethrow(t); - * } - * }; - * } + * Consumer<java.lang.reflect.Method-> consumer = (m) -> { + * try { + * m.invoke(o, args); + * } catch (Throwable t) { + * throw Failable.rethrow(t); + * } + * }; * </pre> * * <p> @@ -59,9 +56,7 @@ import org.apache.commons.lang3.stream.Streams.FailableStream; * </p> * * <pre> - * {@code - * Functions.accept((m) -> m.invoke(o,args)); - * } + * Functions.accept((m) -> m.invoke(o, args)); * </pre> * * <p> @@ -490,11 +485,8 @@ public class Failable { * {@link Throwable} is rethrown. Example use: * * <pre> - * { - * @code - * final FileInputStream fis = new FileInputStream("my.file"); - * Functions.tryWithResources(useInputStream(fis), null, () -> fis.close()); - * } + * final FileInputStream fis = new FileInputStream("my.file"); + * Functions.tryWithResources(useInputStream(fis), null, () -> fis.close()); * </pre> * * @param action The action to execute. This object <em>will</em> always be invoked. @@ -553,11 +545,8 @@ public class Failable { * {@link Throwable} is rethrown. Example use: * * <pre> - * { - * @code - * final FileInputStream fis = new FileInputStream("my.file"); - * Functions.tryWithResources(useInputStream(fis), () -> fis.close()); - * } + * final FileInputStream fis = new FileInputStream("my.file"); + * Functions.tryWithResources(useInputStream(fis), () -> fis.close()); * </pre> * * @param action The action to execute. This object <em>will</em> always be invoked.