aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/apache/commons/lang3/function
diff options
context:
space:
mode:
authorGary Gregory <garydgregory@gmail.com>2020-06-25 13:57:28 -0400
committerGary Gregory <garydgregory@gmail.com>2020-06-25 13:57:28 -0400
commitb69c4759ed286546ba5437d9fcb6d24a1e2d3f8d (patch)
treeecc19dfa27cdd97e5dfedda2a6675b6c1a6a6577 /src/main/java/org/apache/commons/lang3/function
parent268d4936d4136ce35af688617bbd6874b0854f4c (diff)
downloadapache-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.java35
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>
- * {
- * &#64;code
- * Consumer<java.lang.reflect.Method> consumer = (m) -> {
- * try {
- * m.invoke(o, args);
- * } catch (Throwable t) {
- * throw Failable.rethrow(t);
- * }
- * };
- * }
+ * Consumer&lt;java.lang.reflect.Method-&gt; consumer = (m) -&gt; {
+ * 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) -&gt; m.invoke(o, args));
* </pre>
*
* <p>
@@ -490,11 +485,8 @@ public class Failable {
* {@link Throwable} is rethrown. Example use:
*
* <pre>
- * {
- * &#64;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, () -&gt; 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>
- * {
- * &#64;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), () -&gt; fis.close());
* </pre>
*
* @param action The action to execute. This object <em>will</em> always be invoked.