# HG changeset patch # User chegar # Date 1519121760 0 # Node ID 3f29747a858a2973c4d6ddd1787665b7d58bc4d7 # Parent 336393c75a93335a9dc1cde384c974eae9538e1c http-client-branch: minor typo-like changes diff -r 336393c75a93 -r 3f29747a858a 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 @@ *

This class provides methods for accessing the response status code, * headers, the response body, and the {@code HttpRequest} corresponding * to this response. - ** + * * @param 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 ,T> BodyHandler - fromLineSubscriber(S subscriber, Function finisher, String lineSeparator) { + fromLineSubscriber(S subscriber, + Function 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 ,T> BodySubscriber fromLineSubscriber(S subscriber, @@ -1090,7 +1094,7 @@ * supplied value is the value that will be returned from * {@link HttpResponse#body()}. * - * @param The type of the response body + * @param 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; * } } * - * @param the upstream both type + * @param the upstream body type * @param 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 BodySubscriber mapping(BodySubscriber upstream, Function mapper)