http-client-branch: minor typo-like changes http-client-branch
authorchegar
Tue, 20 Feb 2018 10:16:00 +0000
branchhttp-client-branch
changeset 56157 3f29747a858a
parent 56156 336393c75a93
child 56159 039ab5a71a5c
http-client-branch: minor typo-like changes
src/java.net.http/share/classes/java/net/http/HttpResponse.java
--- a/src/java.net.http/share/classes/java/net/http/HttpResponse.java	Tue Feb 20 09:55:18 2018 +0000
+++ b/src/java.net.http/share/classes/java/net/http/HttpResponse.java	Tue Feb 20 10:16:00 2018 +0000
@@ -72,7 +72,7 @@
  * <p> This class provides methods for accessing the response status code,
  * headers, the response body, and the {@code HttpRequest} corresponding
  * to this response.
- **
+ *
  * @param <T> the response body type
  *
  * @since 11
@@ -388,10 +388,13 @@
          *                      in which case lines will be delimited in the manner of
          *                      {@link BufferedReader#readLine()}.
          * @return a response body handler
-         * @throws IllegalArgumentException if the supplied {@code lineSeparator} is the empty string.
+         * @throws IllegalArgumentException if the supplied {@code lineSeparator}
+         *         is the empty string
          */
         public static <S extends Subscriber<? super String>,T> BodyHandler<T>
-        fromLineSubscriber(S subscriber, Function<S,T> finisher, String lineSeparator) {
+        fromLineSubscriber(S subscriber,
+                           Function<S,T> finisher,
+                           String lineSeparator) {
             Objects.requireNonNull(subscriber);
             Objects.requireNonNull(finisher);
             // implicit null check
@@ -906,7 +909,8 @@
          *                      in which case lines will be delimited in the manner of
          *                      {@link BufferedReader#readLine()}.
          * @return a body subscriber
-         * @throws IllegalArgumentException if the supplied {@code lineSeparator} is the empty string.
+         * @throws IllegalArgumentException if the supplied {@code lineSeparator}
+         *         is the empty string
          */
         public static <S extends Subscriber<? super String>,T> BodySubscriber<T>
         fromLineSubscriber(S subscriber,
@@ -1090,7 +1094,7 @@
          * supplied value is the value that will be returned from
          * {@link HttpResponse#body()}.
          *
-         * @param <U> The type of the response body
+         * @param <U> the type of the response body
          * @param value the value to return from HttpResponse.body(), may be {@code null}
          * @return a {@code BodySubscriber}
          */
@@ -1159,11 +1163,11 @@
          *    return downstream;
          * } }</pre>
          *
-         * @param <T> the upstream both type
+         * @param <T> the upstream body type
          * @param <U> the type of the body subscriber returned
          * @param upstream the body subscriber to be mapped
          * @param mapper the mapping function
-         * @return a mapped body subscriber
+         * @return a mapping body subscriber
          */
         public static <T,U> BodySubscriber<U> mapping(BodySubscriber<T> upstream,
                                                       Function<T, U> mapper)