You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2021/03/14 15:35:11 UTC

[httpcomponents-client] branch master updated (b140ef8 -> 118e735)

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git.


    omit b140ef8  Fix typo javDoc and var
     new 118e735  Fixed typos javadocs and var names

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (b140ef8)
            \
             N -- N -- N   refs/heads/master (118e735)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:


[httpcomponents-client] 01/01: Fixed typos javadocs and var names

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git

commit 118e7359a15cc8664a0dc0a9503f7055404df74f
Author: Arturo Bernal <ar...@gmail.com>
AuthorDate: Sun Mar 14 07:53:13 2021 +0100

    Fixed typos javadocs and var names
---
 .../hc/client5/http/impl/cache/CachedHttpResponseGenerator.java     | 2 +-
 .../apache/hc/client5/http/impl/cache/ResponseCachingPolicy.java    | 2 +-
 .../java/org/apache/hc/client5/http/impl/cache/WarningValue.java    | 2 +-
 .../java/org/apache/hc/client5/http/HttpRequestRetryStrategy.java   | 2 +-
 .../org/apache/hc/client5/http/cookie/CookieAttributeHandler.java   | 2 +-
 .../org/apache/hc/client5/http/cookie/CookiePriorityComparator.java | 2 +-
 .../java/org/apache/hc/client5/http/cookie/StandardCookieSpec.java  | 2 +-
 .../org/apache/hc/client5/http/impl/DefaultUserTokenHandler.java    | 6 +++---
 .../apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java   | 4 ++--
 .../java/org/apache/hc/client5/http/impl/auth/DigestScheme.java     | 2 +-
 .../org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java     | 4 ++--
 .../client5/http/impl/auth/UnsupportedDigestAlgorithmException.java | 6 +++---
 12 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CachedHttpResponseGenerator.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CachedHttpResponseGenerator.java
index 455c0ef..090d7dc 100644
--- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CachedHttpResponseGenerator.java
+++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/CachedHttpResponseGenerator.java
@@ -162,7 +162,7 @@ class CachedHttpResponseGenerator {
 
     /**
      * Extract error information about the {@link HttpRequest} telling the 'caller'
-     * that a problem occured.
+     * that a problem occurred.
      *
      * @param errorCheck What type of error should I get
      * @return The {@link HttpResponse} that is the error generated
diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCachingPolicy.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCachingPolicy.java
index 4ecd4e9..9c787b6 100644
--- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCachingPolicy.java
+++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/ResponseCachingPolicy.java
@@ -252,7 +252,7 @@ class ResponseCachingPolicy {
 
         final String[] uncacheableRequestDirectives = { HeaderConstants.CACHE_CONTROL_NO_STORE };
         if (hasCacheControlParameterFrom(request,uncacheableRequestDirectives)) {
-            LOG.debug("Response is explcitily non-cacheable per cache control directive");
+            LOG.debug("Response is explicitly non-cacheable per cache control directive");
             return false;
         }
 
diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/WarningValue.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/WarningValue.java
index adf6817..787c242 100644
--- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/WarningValue.java
+++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/WarningValue.java
@@ -60,7 +60,7 @@ class WarningValue {
         consumeWarnValue();
     }
 
-    /** Returns an array of the parseable warning values contained
+    /** Returns an array of the parsable warning values contained
      * in the given header value, which is assumed to be a
      * Warning header. Improperly formatted warning values will be
      * skipped, in keeping with the philosophy of "ignore what you
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/HttpRequestRetryStrategy.java b/httpclient5/src/main/java/org/apache/hc/client5/http/HttpRequestRetryStrategy.java
index 8614090..56012ee 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/HttpRequestRetryStrategy.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/HttpRequestRetryStrategy.java
@@ -48,7 +48,7 @@ public interface HttpRequestRetryStrategy {
 
     /**
      * Determines if a method should be retried after an I/O exception
-     * occured during execution.
+     * occurred during execution.
      *
      * @param request the request failed due to an I/O exception
      * @param exception the exception that occurred
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookieAttributeHandler.java b/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookieAttributeHandler.java
index b19e847..898b307 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookieAttributeHandler.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookieAttributeHandler.java
@@ -55,7 +55,7 @@ public interface CookieAttributeHandler {
           throws MalformedCookieException;
 
   /**
-   * Peforms cookie validation for the given attribute value.
+   * Performs cookie validation for the given attribute value.
    *
    * @param cookie {@link org.apache.hc.client5.http.cookie.Cookie} to validate
    * @param origin the cookie source to validate against
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookiePriorityComparator.java b/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookiePriorityComparator.java
index 384af70..f33f80b 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookiePriorityComparator.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookiePriorityComparator.java
@@ -35,7 +35,7 @@ import org.apache.hc.core5.annotation.ThreadingBehavior;
 
 /**
  * This cookie comparator ensures that cookies with longer paths take precedence over
- * cookies with shorter path. Among cookies with equal path length cookies with ealier
+ * cookies with shorter path. Among cookies with equal path length cookies with earlier
  * creation time take precedence over cookies with later creation time
  *
  * @since 4.4
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/StandardCookieSpec.java b/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/StandardCookieSpec.java
index 9e1d467..76522a5 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/StandardCookieSpec.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/StandardCookieSpec.java
@@ -39,7 +39,7 @@ public final class StandardCookieSpec {
     }
 
     /**
-     * The RFC 6265 compliant policy (interoprability profile).
+     * The RFC 6265 compliant policy (interoperability profile).
      */
     public static final String RELAXED = "relaxed";
 
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultUserTokenHandler.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultUserTokenHandler.java
index 87809b8..6570cc4 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultUserTokenHandler.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultUserTokenHandler.java
@@ -66,9 +66,9 @@ public class DefaultUserTokenHandler implements UserTokenHandler {
 
         Principal userPrincipal = null;
 
-        final AuthExchange targetAuthExchnage = clientContext.getAuthExchange(route.getTargetHost());
-        if (targetAuthExchnage != null) {
-            userPrincipal = getAuthPrincipal(targetAuthExchnage);
+        final AuthExchange targetAuthExchange = clientContext.getAuthExchange(route.getTargetHost());
+        if (targetAuthExchange != null) {
+            userPrincipal = getAuthPrincipal(targetAuthExchange);
             if (userPrincipal == null && route.getProxyHost() != null) {
                 final AuthExchange proxyAuthExchange = clientContext.getAuthExchange(route.getProxyHost());
                 userPrincipal = getAuthPrincipal(proxyAuthExchange);
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java
index 2b9ca48..f5699c3 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java
@@ -668,7 +668,7 @@ public class HttpAsyncClientBuilder {
      * One MUST explicitly close HttpClient with {@link CloseableHttpAsyncClient#close()} in order
      * to stop and release the background thread.
      * <p>
-     * Please note this method has no effect if the instance of HttpClient is configuted to
+     * Please note this method has no effect if the instance of HttpClient is configured to
      * use a shared connection manager.
      *
      * @see #setConnectionManagerShared(boolean)
@@ -686,7 +686,7 @@ public class HttpAsyncClientBuilder {
      * One MUST explicitly close HttpClient with {@link CloseableHttpAsyncClient#close()}
      * in order to stop and release the background thread.
      * <p>
-     * Please note this method has no effect if the instance of HttpClient is configuted to
+     * Please note this method has no effect if the instance of HttpClient is configured to
      * use a shared connection manager.
      *
      * @see #setConnectionManagerShared(boolean)
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java
index 7d5065e..ab6eabd 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java
@@ -292,7 +292,7 @@ public class DigestScheme implements AuthScheme, Serializable {
         try {
             digester = createMessageDigest(digAlg);
         } catch (final UnsupportedDigestAlgorithmException ex) {
-            throw new AuthenticationException("Unsuppported digest algorithm: " + digAlg);
+            throw new AuthenticationException("Unsupported digest algorithm: " + digAlg);
         }
 
         if (nonce.equals(this.lastNonce)) {
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java
index ceff317..7987402 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/HttpAuthenticator.java
@@ -377,8 +377,8 @@ public final class HttpAuthenticator {
     }
 
     private void updateCache(final HttpHost host, final AuthScheme authScheme, final HttpClientContext clientContext) {
-        final boolean cachable = authScheme.getClass().getAnnotation(AuthStateCacheable.class) != null;
-        if (cachable) {
+        final boolean cacheable = authScheme.getClass().getAnnotation(AuthStateCacheable.class) != null;
+        if (cacheable) {
             AuthCache authCache = clientContext.getAuthCache();
             if (authCache == null) {
                 authCache = new BasicAuthCache();
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/UnsupportedDigestAlgorithmException.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/UnsupportedDigestAlgorithmException.java
index b03d28f..c45190e 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/UnsupportedDigestAlgorithmException.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/UnsupportedDigestAlgorithmException.java
@@ -37,14 +37,14 @@ public class UnsupportedDigestAlgorithmException extends RuntimeException {
     private static final long serialVersionUID = 319558534317118022L;
 
     /**
-     * Creates a new UnsupportedAuthAlgoritmException with a {@code null} detail message.
+     * Creates a new UnsupportedDigestAlgorithmException with a {@code null} detail message.
      */
     public UnsupportedDigestAlgorithmException() {
         super();
     }
 
     /**
-     * Creates a new UnsupportedAuthAlgoritmException with the specified message.
+     * Creates a new UnsupportedDigestAlgorithmException with the specified message.
      *
      * @param message the exception detail message
      */
@@ -53,7 +53,7 @@ public class UnsupportedDigestAlgorithmException extends RuntimeException {
     }
 
     /**
-     * Creates a new UnsupportedAuthAlgoritmException with the specified detail message and cause.
+     * Creates a new UnsupportedDigestAlgorithmException with the specified detail message and cause.
      *
      * @param message the exception detail message
      * @param cause the {@code Throwable} that caused this exception, or {@code null}