# HG changeset patch # User chegar # Date 1518179647 0 # Node ID 41ba54ac9403123766e8a41865106927614b36d0 # Parent e1890248eafe56335f2dc96e03ab4a0c09913b96 http-client-branch: revert overzealous use of @linkplain diff -r e1890248eafe -r 41ba54ac9403 src/java.net.http/share/classes/java/net/http/HttpClient.java --- a/src/java.net.http/share/classes/java/net/http/HttpClient.java Fri Feb 09 09:26:44 2018 +0000 +++ b/src/java.net.http/share/classes/java/net/http/HttpClient.java Fri Feb 09 12:34:07 2018 +0000 @@ -59,9 +59,9 @@ *

An {@code HttpClient} provides configuration information, and resource * sharing, for all requests send through it. * - *

A {@linkplain BodyHandler BodyHandler} must be supplied for each {@link + *

A {@link BodyHandler BodyHandler} must be supplied for each {@link * HttpRequest} sent. The {@code BodyHandler} determines how to handle the - * response body, if any. Once an {@linkplain HttpResponse} is received, the + * response body, if any. Once an {@link HttpResponse} is received, the * headers, response code, and body (typically) are available. Whether the * response body bytes has been read or not depends on the type {@code } of * the response body. @@ -73,8 +73,8 @@ * *

  • {@link HttpClient#sendAsync(HttpRequest, BodyHandler)} sends the * request and receives the response asynchronously. The {@code sendAsync} - * method returns immediately with a {@linkplain CompletableFuture - * CompletableFuture}<{@linkplain HttpResponse}>. The {@code + * method returns immediately with a {@link CompletableFuture + * CompletableFuture}<{@link HttpResponse}>. The {@code * CompletableFuture} completes when the response becomes available. The * returned {@code CompletableFuture} can be combined in different ways to * declare dependencies among several asynchronous tasks.
  • @@ -168,7 +168,7 @@ /** * A builder of {@link HttpClient}s. * - *

    Builders are created by invoking {@linkplain HttpClient#newBuilder() + *

    Builders are created by invoking {@link HttpClient#newBuilder() * newBuilder}. Each of the setter methods modifies the state of the builder * and returns the same instance. Builders are not thread-safe and should not be * used concurrently from multiple threads without external synchronization. @@ -311,7 +311,7 @@ * ProxySelector#getDefault() default proxy selector}, which is usually * adequate for client applications. This default behavior can be turned * off by supplying an explicit proxy selector to this method, such as - * {@link #NO_PROXY} or one returned by {@linkplain + * {@link #NO_PROXY} or one returned by {@link * ProxySelector#of(InetSocketAddress) ProxySelector::of}, before * {@linkplain #build() building}. * @@ -339,7 +339,7 @@ /** - * Returns an {@code Optional} containing this client's {@linkplain + * Returns an {@code Optional} containing this client's {@link * CookieHandler}. If no {@code CookieHandler} was set in this client's * builder, then the {@code Optional} is empty. * @@ -414,7 +414,7 @@ public abstract HttpClient.Version version(); /** - * Returns an {@code Optional} containing this client's {@linkplain + * Returns an {@code Optional} containing this client's {@link * Executor}. If no {@code Executor} was set in the client's builder, * then the {@code Optional} is empty. * diff -r e1890248eafe -r 41ba54ac9403 src/java.net.http/share/classes/java/net/http/HttpHeaders.java --- a/src/java.net.http/share/classes/java/net/http/HttpHeaders.java Fri Feb 09 09:26:44 2018 +0000 +++ b/src/java.net.http/share/classes/java/net/http/HttpHeaders.java Fri Feb 09 12:34:07 2018 +0000 @@ -37,7 +37,7 @@ * A read-only view of a set of HTTP headers. * *

    The methods of this class ( that accept a String header name ), and the - * Map returned by the {@linkplain #map() map} method, operate without regard to + * Map returned by the {@link #map() map} method, operate without regard to * case when retrieving the header value. * *

    HttpHeaders instances are immutable. @@ -138,7 +138,7 @@ * Computes a hash code for this HTTP headers instance. * *

    The hash code is based upon the components of the HTTP headers - * {@linkplain #map() map}, and satisfies the general contract of the + * {@link #map() map}, and satisfies the general contract of the * {@link Object#hashCode Object.hashCode} method. * * @return the hash-code value for this HTTP headers diff -r e1890248eafe -r 41ba54ac9403 src/java.net.http/share/classes/java/net/http/HttpRequest.java --- a/src/java.net.http/share/classes/java/net/http/HttpRequest.java Fri Feb 09 09:26:44 2018 +0000 +++ b/src/java.net.http/share/classes/java/net/http/HttpRequest.java Fri Feb 09 12:34:07 2018 +0000 @@ -54,12 +54,12 @@ * *

    An {@code HttpRequest} instance is built through an {@code HttpRequest} * {@linkplain HttpRequest.Builder builder}. An {@code HttpRequest} builder - * is obtained from one of the {@linkplain HttpRequest#newBuilder(URI) newBuilder} - * methods. A request's {@linkplain URI}, headers, and body can be set. Request - * bodies are provided through a {@linkplain BodyPublisher BodyPublisher} - * supplied to one of the {@linkplain Builder#DELETE(BodyPublisher) DELETE}, - * {@linkplain Builder#POST(BodyPublisher) POST} or - * {@linkplain Builder#PUT(BodyPublisher) PUT} methods. + * is obtained from one of the {@link HttpRequest#newBuilder(URI) newBuilder} + * methods. A request's {@link URI}, headers, and body can be set. Request + * bodies are provided through a {@link BodyPublisher BodyPublisher} supplied + * to one of the {@link Builder#DELETE(BodyPublisher) DELETE}, + * {@link Builder#POST(BodyPublisher) POST} or + * {@link Builder#PUT(BodyPublisher) PUT} methods. * Once all required parameters have been set in the builder, {@link * Builder#build() build} will return the {@code HttpRequest}. Builders can be * copied and modified many times in order to build multiple related requests @@ -78,7 +78,7 @@ *

    Request bodies * *

    Request bodies can be sent using one of the convenience request publisher - * implementations, provided in {@linkplain BodyPublisher BodyPublisher}. + * implementations, provided in {@link BodyPublisher BodyPublisher}. *