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 16bce45fe Use Javadoc @code
16bce45fe is described below

commit 16bce45fec8861dd040e3d0231a71acabd6b5160
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Jul 29 19:37:34 2024 -0400

    Use Javadoc @code
---
 src/main/java/org/apache/commons/lang3/Streams.java        |  2 +-
 src/main/java/org/apache/commons/lang3/stream/Streams.java | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/Streams.java 
b/src/main/java/org/apache/commons/lang3/Streams.java
index 1776b829a..bf3c86a1c 100644
--- a/src/main/java/org/apache/commons/lang3/Streams.java
+++ b/src/main/java/org/apache/commons/lang3/Streams.java
@@ -53,7 +53,7 @@ import org.apache.commons.lang3.Functions.FailablePredicate;
  * }</pre>
  * Using a {@link FailableStream}, this can be rewritten as follows:
  * <pre>{@code
- *     Streams.failable(stream).forEach((m) -> m.invoke(o, args));
+ *     Streams.failable(stream).forEach(m -> m.invoke(o, args));
  * }</pre>
  * Obviously, the second version is much more concise and the spirit of
  * Lambda expressions is met better than in the first version.
diff --git a/src/main/java/org/apache/commons/lang3/stream/Streams.java 
b/src/main/java/org/apache/commons/lang3/stream/Streams.java
index 61b1d7bb7..831d7b648 100644
--- a/src/main/java/org/apache/commons/lang3/stream/Streams.java
+++ b/src/main/java/org/apache/commons/lang3/stream/Streams.java
@@ -49,8 +49,8 @@ import org.apache.commons.lang3.function.FailablePredicate;
  * attempts to address the fact that lambdas are supposed not to throw 
Exceptions, at least not checked Exceptions, AKA instances of {@link 
Exception}. This
  * enforces the use of constructs like:
  *
- * <pre>
- * Consumer&lt;java.lang.reflect.Method&gt; consumer = m -&gt; {
+ * <pre>{@code
+ * Consumer<java.lang.reflect.Method> consumer = m -> {
  *     try {
  *         m.invoke(o, args);
  *     } catch (Throwable t) {
@@ -58,14 +58,14 @@ import org.apache.commons.lang3.function.FailablePredicate;
  *     }
  * };
  * stream.forEach(consumer);
- * </pre>
+ * }</pre>
  * <p>
  * Using a {@link FailableStream}, this can be rewritten as follows:
  * </p>
  *
- * <pre>
- * Streams.failable(stream).forEach(m -&gt; m.invoke(o, args));
- * </pre>
+ * <pre>{@code
+ * Streams.failable(stream).forEach(m -> m.invoke(o, args));
+ * }</pre>
  * <p>
  * Obviously, the second version is much more concise and the spirit of Lambda 
expressions is met better than in the first version.
  * </p>

Reply via email to