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 fa01994df Use old syntax due to Javadoc 8 issue
fa01994df is described below
commit fa01994df1ca311a2840703207fccea7ebd17d6b
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jul 29 19:30:48 2024 -0400
Use old syntax due to Javadoc 8 issue
Using @code on Java 17 is OK here
---
.../org/apache/commons/lang3/stream/Streams.java | 22 +++++++++-------------
1 file changed, 9 insertions(+), 13 deletions(-)
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 3e552b112..61b1d7bb7 100644
--- a/src/main/java/org/apache/commons/lang3/stream/Streams.java
+++ b/src/main/java/org/apache/commons/lang3/stream/Streams.java
@@ -45,13 +45,12 @@ import org.apache.commons.lang3.function.FailableFunction;
import org.apache.commons.lang3.function.FailablePredicate;
/**
- * Provides utility functions, and classes for working with the {@link
java.util.stream} package, or more generally,
- * with Java 8 lambdas. More specifically, it 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:
+ * Provides utility functions, and classes for working with the {@link
java.util.stream} package, or more generally, with Java 8 lambdas. More
specifically, it
+ * 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>{@code
- * Consumer<java.lang.reflect.Method> consumer = m -> {
+ * <pre>
+ * Consumer<java.lang.reflect.Method> consumer = m -> {
* try {
* m.invoke(o, args);
* } catch (Throwable t) {
@@ -59,20 +58,17 @@ import org.apache.commons.lang3.function.FailablePredicate;
* }
* };
* stream.forEach(consumer);
- * }
* </pre>
* <p>
* Using a {@link FailableStream}, this can be rewritten as follows:
* </p>
*
* <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.
+ * <p>
+ * Obviously, the second version is much more concise and the spirit of Lambda
expressions is met better than in the first version.
+ * </p>
*
* @see Stream
* @see Failable