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/10/17 19:39:26 UTC

[httpcomponents-client] branch master updated: * Fix javadoc typo. * Use java array declarations instead of "c" way.

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


The following commit(s) were added to refs/heads/master by this push:
     new d9299be  * Fix javadoc typo. * Use java array declarations instead of "c" way.
d9299be is described below

commit d9299bee2027b079c32b606d1332e28ec2308a2d
Author: Arturo Bernal <ar...@gmail.com>
AuthorDate: Sun Oct 17 09:40:12 2021 +0200

    * Fix javadoc typo.
    * Use java array declarations instead of "c" way.
---
 .../java/org/apache/hc/client5/http/cookie/CookiePathComparator.java    | 2 +-
 .../hc/client5/http/impl/DefaultClientConnectionReuseStrategy.java      | 2 +-
 .../org/apache/hc/client5/http/impl/async/HttpAsyncClientBuilder.java   | 2 +-
 .../main/java/org/apache/hc/client5/http/impl/auth/NTLMEngineImpl.java  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookiePathComparator.java b/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookiePathComparator.java
index e3749c4..192ad18 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookiePathComparator.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/cookie/CookiePathComparator.java
@@ -41,7 +41,7 @@ import org.apache.hc.core5.annotation.ThreadingBehavior;
  *
  * <p>
  * This comparator assumes that Path attributes of two cookies
- * path-match a commmon request-URI. Otherwise, the result of the
+ * path-match a common request-URI. Otherwise, the result of the
  * comparison is undefined.
  * </p>
  *
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultClientConnectionReuseStrategy.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultClientConnectionReuseStrategy.java
index f17accf..b28b30e 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultClientConnectionReuseStrategy.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/DefaultClientConnectionReuseStrategy.java
@@ -37,7 +37,7 @@ import org.apache.hc.core5.http.protocol.HttpContext;
 
 /**
  * Extension of core {@link DefaultConnectionReuseStrategy} that treats
- * CONNECT method exchnages involved in proxy tunnelling as a special case.
+ * CONNECT method exchanges involved in proxy tunnelling as a special case.
  *
  * @since 5.2
  */
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 394a228..35d4af1 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
@@ -260,7 +260,7 @@ public class HttpAsyncClientBuilder {
     /**
      * Sets HTTP protocol version policy.
      *
-     * @deprecated Use {@link TlsConfig} and connection nanager methods
+     * @deprecated Use {@link TlsConfig} and connection manager methods
      */
     @Deprecated
     public final HttpAsyncClientBuilder setVersionPolicy(final HttpVersionPolicy versionPolicy) {
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/NTLMEngineImpl.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/NTLMEngineImpl.java
index d87ee94..3bf9f61 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/NTLMEngineImpl.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/NTLMEngineImpl.java
@@ -917,7 +917,7 @@ final class NTLMEngineImpl implements NTLMEngine {
             return sig;
         }
 
-        private boolean validateSignature( final byte[] signature, final byte message[] )
+        private boolean validateSignature( final byte[] signature, final byte[] message )
         {
             final byte[] computedSignature = computeSignature( message );
             //            log.info( "SSSSS validateSignature("+seqNumber+")\n"