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/02/10 21:09:27 UTC

[httpcomponents-client] branch master updated: Fix Typo

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 f2e9ad3  Fix Typo
f2e9ad3 is described below

commit f2e9ad3b117ef5b1b250d8f1e121f67899045e0e
Author: Arturo Bernal <ar...@gmail.com>
AuthorDate: Tue Feb 9 07:26:05 2021 +0100

    Fix Typo
---
 .../apache/hc/client5/http/cache/HttpAsyncCacheStorageAdaptor.java  | 4 ++--
 .../http/impl/cache/AbstractSerializingAsyncCacheStorage.java       | 6 +++---
 .../java/org/apache/hc/client5/http/impl/cache/FileResource.java    | 4 ++--
 .../java/org/apache/hc/client5/http/impl/cache/HeapResource.java    | 2 +-
 .../org/apache/hc/client5/http/impl/async/AsyncRedirectExec.java    | 2 +-
 .../org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java | 2 +-
 .../org/apache/hc/client5/http/impl/cookie/BasicDomainHandler.java  | 2 +-
 7 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpAsyncCacheStorageAdaptor.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpAsyncCacheStorageAdaptor.java
index 7f1e525..2178a62 100644
--- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpAsyncCacheStorageAdaptor.java
+++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/cache/HttpAsyncCacheStorageAdaptor.java
@@ -48,13 +48,13 @@ public final class HttpAsyncCacheStorageAdaptor implements HttpAsyncCacheStorage
     private final HttpCacheStorage cacheStorage;
 
     public HttpAsyncCacheStorageAdaptor(final HttpCacheStorage cacheStorage) {
-        this.cacheStorage = Args.notNull(cacheStorage, "Cache strorage");
+        this.cacheStorage = Args.notNull(cacheStorage, "Cache storage");
     }
 
     @Override
     public Cancellable putEntry(final String key, final HttpCacheEntry entry, final FutureCallback<Boolean> callback) {
         Args.notEmpty(key, "Key");
-        Args.notNull(entry, "Cache ehtry");
+        Args.notNull(entry, "Cache entry");
         Args.notNull(callback, "Callback");
         try {
             cacheStorage.putEntry(key, entry);
diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AbstractSerializingAsyncCacheStorage.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AbstractSerializingAsyncCacheStorage.java
index 81c21fa..0263a6d 100644
--- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AbstractSerializingAsyncCacheStorage.java
+++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/AbstractSerializingAsyncCacheStorage.java
@@ -156,11 +156,11 @@ public abstract class AbstractSerializingAsyncCacheStorage<T, CAS> implements Ht
         Args.notNull(callback, "Callback");
         final ComplexCancellable complexCancellable = new ComplexCancellable();
         final AtomicInteger count = new AtomicInteger(0);
-        atemmptUpdateEntry(key, casOperation, complexCancellable, count, callback);
+        attemptUpdateEntry(key, casOperation, complexCancellable, count, callback);
         return complexCancellable;
     }
 
-    private void atemmptUpdateEntry(
+    private void attemptUpdateEntry(
             final String key,
             final HttpCacheCASOperation casOperation,
             final ComplexCancellable complexCancellable,
@@ -195,7 +195,7 @@ public abstract class AbstractSerializingAsyncCacheStorage<T, CAS> implements Ht
                                             if (numRetries >= maxUpdateRetries) {
                                                 callback.failed(new HttpCacheUpdateException("Cache update failed after " + numRetries + " retries"));
                                             } else {
-                                                atemmptUpdateEntry(key, casOperation, complexCancellable, count, callback);
+                                                attemptUpdateEntry(key, casOperation, complexCancellable, count, callback);
                                             }
                                         }
                                     }
diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/FileResource.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/FileResource.java
index cd240a6..69ed1a4 100644
--- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/FileResource.java
+++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/FileResource.java
@@ -68,7 +68,7 @@ public class FileResource extends Resource {
     public byte[] get() throws ResourceIOException {
         final File file = this.fileRef.get();
         if (file == null) {
-            throw new ResourceIOException("Resouce already dispoased");
+            throw new ResourceIOException("Resource already disposed");
         }
         try (final InputStream in = new FileInputStream(file)) {
             final ByteArrayBuffer buf = new ByteArrayBuffer(1024);
@@ -93,7 +93,7 @@ public class FileResource extends Resource {
                 throw new ResourceIOException(ex.getMessage(), ex);
             }
         }
-        throw new ResourceIOException("Resouce already dispoased");
+        throw new ResourceIOException("Resource already disposed");
     }
 
     @Override
diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HeapResource.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HeapResource.java
index 5c7aab1..8a23e39 100644
--- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HeapResource.java
+++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/HeapResource.java
@@ -56,7 +56,7 @@ public class HeapResource extends Resource {
         if (byteArray != null) {
             return byteArray;
         }
-        throw new ResourceIOException("Resouce already dispoased");
+        throw new ResourceIOException("Resource already disposed");
     }
 
     @Override
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncRedirectExec.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncRedirectExec.java
index ea45683..a9cd356 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncRedirectExec.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/AsyncRedirectExec.java
@@ -62,7 +62,7 @@ import org.slf4j.LoggerFactory;
 
 /**
  * Request execution handler in the asynchronous request execution chain
- * responsbile for handling of request redirects.
+ * responsible for handling of request redirects.
  * <p>
  * Further responsibilities such as communication with the opposite
  * endpoint is delegated to the next executor in the request execution
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java
index 4cb691c..fa3f0e0 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/H2AsyncClientBuilder.java
@@ -558,7 +558,7 @@ public class H2AsyncClientBuilder {
      * 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.
      *
      * @param maxIdleTime maximum time persistent connections can stay idle while kept alive
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/cookie/BasicDomainHandler.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/cookie/BasicDomainHandler.java
index ffaa0f0..fd3cc51 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/cookie/BasicDomainHandler.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/cookie/BasicDomainHandler.java
@@ -99,7 +99,7 @@ public class BasicDomainHandler implements CommonCookieAttributeHandler {
         final String normalizedDomain = domain.startsWith(".") ? domain.substring(1) : domain;
         if (host.endsWith(normalizedDomain)) {
             final int prefix = host.length() - normalizedDomain.length();
-            // Either a full match or a prefix endidng with a '.'
+            // Either a full match or a prefix ending with a '.'
             if (prefix == 0) {
                 return true;
             }