diff options
author | Gary Gregory <garydgregory@gmail.com> | 2020-06-25 13:57:28 -0400 |
---|---|---|
committer | Gary Gregory <garydgregory@gmail.com> | 2020-06-25 13:57:28 -0400 |
commit | b69c4759ed286546ba5437d9fcb6d24a1e2d3f8d (patch) | |
tree | ecc19dfa27cdd97e5dfedda2a6675b6c1a6a6577 /src/main/java/org/apache/commons/lang3/function | |
parent | 268d4936d4136ce35af688617bbd6874b0854f4c (diff) | |
download | apache-commons-lang-b69c4759ed286546ba5437d9fcb6d24a1e2d3f8d.tar.gz |
[LANG-1568] Javadoc.
Diffstat (limited to 'src/main/java/org/apache/commons/lang3/function')
-rw-r--r-- | src/main/java/org/apache/commons/lang3/function/Failable.java | 35 |
1 files 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 d2a12a07d..d4bf30d93 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. |