# HG changeset patch # User chegar # Date 1520875838 0 # Node ID 2baa59cfe37b25d5f2522240eae0f7192e352c6c # Parent 8bc5fb608e30a47dba785ffc959b02d508761578 http-client-branch: link default proxy to system properties diff -r 8bc5fb608e30 -r 2baa59cfe37b src/java.net.http/share/classes/java/net/http/HttpClient.java --- a/src/java.net.http/share/classes/java/net/http/HttpClient.java Mon Mar 12 13:11:15 2018 +0000 +++ b/src/java.net.http/share/classes/java/net/http/HttpClient.java Mon Mar 12 17:30:38 2018 +0000 @@ -305,24 +305,26 @@ * If this method is not invoked prior to {@linkplain #build() building}, * then newly built clients will use the {@linkplain * 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 {@link - * ProxySelector#of(InetSocketAddress) ProxySelector::of}, before - * {@linkplain #build() building}. + * adequate for client applications. The default proxy selector supports + * a set of system properties related to + * + * proxy settings. This default behavior can be disabled by + * supplying an explicit proxy selector, such as {@link #NO_PROXY} or + * one returned by {@link ProxySelector#of(InetSocketAddress) + * ProxySelector::of}, before {@linkplain #build() building}. * - * @param selector the ProxySelector + * @param proxySelector the ProxySelector * @return this builder */ - public Builder proxy(ProxySelector selector); + public Builder proxy(ProxySelector proxySelector); /** * Sets an authenticator to use for HTTP authentication. * - * @param a the Authenticator + * @param authenticator the Authenticator * @return this builder */ - public Builder authenticator(Authenticator a); + public Builder authenticator(Authenticator authenticator); /** * Returns a new {@link HttpClient} built from the current state of this