From b69c4759ed286546ba5437d9fcb6d24a1e2d3f8d Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 25 Jun 2020 13:57:28 -0400 Subject: [PATCH] [LANG-1568] Javadoc. --- .../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 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: * *
- * {
- *     @code
- *     Consumer 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);
+ *     }
+ * };
  * 
* *

@@ -59,9 +56,7 @@ import org.apache.commons.lang3.stream.Streams.FailableStream; *

* *
- * {@code
- *   Functions.accept((m) -> m.invoke(o,args));
- * }
+ * Functions.accept((m) -> m.invoke(o, args));
  * 
* *

@@ -490,11 +485,8 @@ public class Failable { * {@link Throwable} is rethrown. Example use: * *

-     * {
-     *     @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());
      * 
* * @param action The action to execute. This object will always be invoked. @@ -553,11 +545,8 @@ public class Failable { * {@link Throwable} is rethrown. Example use: * *
-     * {
-     *     @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());
      * 
* * @param action The action to execute. This object will always be invoked.