From 4f9be0faabe494f1f9a2000df288d79d9ab6663b Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 10 Jul 2020 11:49:00 -0400 Subject: [PATCH] Checkstyle. --- .../apache/commons/lang3/stream/Streams.java | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 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 c7fa930e6..201b227ea 100644 --- a/src/main/java/org/apache/commons/lang3/stream/Streams.java +++ b/src/main/java/org/apache/commons/lang3/stream/Streams.java @@ -109,7 +109,7 @@ public Supplier> supplier() { /** * A reduced, and simplified version of a {@link Stream} with failable method signatures. - * + * * @param The streams element type. */ public static class FailableStream { @@ -119,7 +119,7 @@ public static class FailableStream { /** * Constructs a new instance with the given {@code stream}. - * + * * @param stream The stream. */ public FailableStream(final Stream stream) { @@ -193,7 +193,7 @@ protected void assertNotTerminated() { * reduction. * * \@apiNote The following will accumulate strings into an ArrayList: - * + * *
          * {
          *     @code
@@ -203,7 +203,7 @@ protected void assertNotTerminated() {
          *
          * 

* The following will classify {@code Person} objects by city: - * + * *

          * {
          *     @code
@@ -214,7 +214,7 @@ protected void assertNotTerminated() {
          * 

* The following will classify {@code Person} objects by state and city, cascading two {@code Collector}s * together: - * + * *

          * {
          *     @code
@@ -240,7 +240,7 @@ public  R collect(final Collector collector) {
          * which the reduced value is a mutable result container, such as an {@code ArrayList}, and elements are
          * incorporated by updating the state of the result rather than by replacing the result. This produces a result
          * equivalent to:
-         * 
+         *
          * 
          * {@code
          *     R result = supplier.get();
@@ -260,7 +260,7 @@ public  R collect(final Collector collector) {
          * \@apiNote There are many existing classes in the JDK whose signatures are well-suited for use with method
          * references as arguments to {@code collect()}. For example, the following will accumulate strings into an
          * {@code ArrayList}:
-         * 
+         *
          * 
          * {
          *     @code
@@ -270,7 +270,7 @@ public  R collect(final Collector collector) {
          *
          * 

* The following will take a stream of strings and concatenates them into a single string: - * + * *

          * {
          *     @code
@@ -354,7 +354,7 @@ public  FailableStream map(final FailableFunction mapper) {
         /**
          * Performs a reduction on the elements of this stream, using the provided identity value and an associative
          * accumulation function, and returns the reduced value. This is equivalent to:
-         * 
+         *
          * 
          * {@code
          *     T result = identity;
@@ -409,7 +409,7 @@ public O reduce(final O identity, final BinaryOperator accumulator) {
 
         /**
          * Converts the FailableStream into an equivalent stream.
-         * 
+         *
          * @return A stream, which will return the same elements, which this FailableStream would return.
          */
         public Stream stream() {
@@ -422,7 +422,7 @@ public Stream stream() {
      * version of the {@link Stream} class, with the same underlying element stream, except that failable objects, like
      * {@link FailablePredicate}, {@link FailableFunction}, or {@link FailableConsumer} may be applied, instead of
      * {@link Predicate}, {@link Function}, or {@link Consumer}. The idea is to rewrite a code snippet like this:
-     * 
+     *
      * 
      * final List<O> list;
      * final Method m;
@@ -435,20 +435,20 @@ public Stream stream() {
      * };
      * final List<String> strList = list.stream().map(mapper).collect(Collectors.toList());
      * 
- * + * * as follows: - * + * *
      * final List<O> list;
      * final Method m;
      * final List<String> strList = Failable.stream(list.stream()).map((o) -> (String) m.invoke(o))
      *     .collect(Collectors.toList());
      * 
- * + * * While the second version may not be quite as efficient (because it depends on the creation of * additional, intermediate objects, of type FailableStream), it is much more concise, and readable, and meets the * spirit of Lambdas better than the first version. - * + * * @param The streams element type. * @param stream The stream, which is being converted. * @return The {@link FailableStream}, which has been created by converting the stream. @@ -462,7 +462,7 @@ public static FailableStream stream(final Collection stream) { * version of the {@link Stream} class, with the same underlying element stream, except that failable objects, like * {@link FailablePredicate}, {@link FailableFunction}, or {@link FailableConsumer} may be applied, instead of * {@link Predicate}, {@link Function}, or {@link Consumer}. The idea is to rewrite a code snippet like this: - * + * *
      * final List<O> list;
      * final Method m;
@@ -475,20 +475,20 @@ public static  FailableStream stream(final Collection stream) {
      * };
      * final List<String> strList = list.stream().map(mapper).collect(Collectors.toList());
      * 
- * + * * as follows: - * + * *
      * final List<O> list;
      * final Method m;
      * final List<String> strList = Failable.stream(list.stream()).map((o) -> (String) m.invoke(o))
      *     .collect(Collectors.toList());
      * 
- * + * * While the second version may not be quite as efficient (because it depends on the creation of * additional, intermediate objects, of type FailableStream), it is much more concise, and readable, and meets the * spirit of Lambdas better than the first version. - * + * * @param The streams element type. * @param stream The stream, which is being converted. * @return The {@link FailableStream}, which has been created by converting the stream.